Move source files into src directory (oops), and fix struct field warnings.

* Warnings fixed by adding [StructLayout(LayoutKind.Sequential)].
internals
Eric Mellino 6 years ago
parent 4ee6bd584c
commit b40f1e1827
  1. 4
      src/ImGui.NET/ImGui.NET.csproj
  2. 2
      src/ImGui.NET/NativeContext.cs
  3. 0
      src/ImGui.NET/NativeDrawContext.cs
  4. 5
      src/ImGui.NET/NativePayload.cs
  5. 0
      src/ImGui.NET/NativeSimpleColumns.cs
  6. 2
      src/ImGui.NET/NativeWindow.cs

@ -16,10 +16,6 @@
<DocumentationFile Condition="'$(Configuration)' == 'Release'">$(OutputPath)\ImGui.NET.xml</DocumentationFile>
<RootNamespace>ImGuiNET</RootNamespace>
</PropertyGroup>
<ItemGroup>
<Compile Include="..\..\NativeDrawContext.cs" Link="NativeDrawContext.cs" />
<Compile Include="..\..\NativeSimpleColumns.cs" Link="NativeSimpleColumns.cs" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="System.Numerics.Vectors" Version="4.4.0" />
<PackageReference Include="System.Runtime.CompilerServices.Unsafe" Version="4.4.0" />

@ -1,8 +1,10 @@
using System;
using System.Numerics;
using System.Runtime.InteropServices;
namespace ImGuiNET
{
[StructLayout(LayoutKind.Sequential)]
public unsafe struct NativeContext
{
public byte Initialized;

@ -1,5 +1,8 @@
namespace ImGuiNET
using System.Runtime.InteropServices;
namespace ImGuiNET
{
[StructLayout(LayoutKind.Sequential)]
public unsafe struct NativePayload
{
public void* Data;

@ -1,7 +1,9 @@
using System.Numerics;
using System.Runtime.InteropServices;
namespace ImGuiNET
{
[StructLayout(LayoutKind.Sequential)]
public unsafe struct NativeWindow
{
public byte* Name;

Loading…
Cancel
Save