daily upsate on 20230517 by nitload youmu

This commit is contained in:
Nitload
2023-05-18 03:46:07 +08:00
parent 3532f09fed
commit 0b276537c9
80 changed files with 703 additions and 504 deletions
@@ -0,0 +1,20 @@
using StgSharp.Geometries;
using System;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using System.Text;
namespace StgSharp
{
internal static unsafe partial class IO
{
[DllImport("StgSharpGraphics.dll", EntryPoint = "initTriangle")]
internal static unsafe extern triangleVertexArray initTriangleVertex();
[DllImport("StgSharpGraphics.dll", EntryPoint = "initPolygon4")]
internal static unsafe extern Polygon4VertexArray initPolygon4Vertex();
[DllImport("StgSharpGraphics.dll", EntryPoint = "initPolygon5")]
internal static unsafe extern Polygon5VertexArray initPolygon5Vertex();
}
}
@@ -0,0 +1,13 @@
using System;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using System.Text;
namespace StgSharp.Control.IO
{
public static partial class IO
{
[DllImport("StgSharpGraphics.dll", EntryPoint = "initWindow")]
public static extern void Window(int width, int height);
}
}
@@ -0,0 +1,23 @@
using System;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using System.Text;
namespace StgSharp.Control
{
public delegate int InitWindow(int width, int height);
[StructLayout(LayoutKind.Sequential)]
public struct GraphicIOPack
{
public InitWindow initWindowPtr = default;
public GraphicIOPack()
{
}
}
}