daily update on 20240209 by nitload youmu

This commit is contained in:
Nitload
2024-02-09 23:31:33 +08:00
parent 6fe6b3b3cf
commit 8391569482
159 changed files with 948 additions and 2431 deletions
-23
View File
@@ -1,23 +0,0 @@
using StgSharp.Controlling;
using StgSharp.Graphics;
using StgSharp.Math;
using System;
using System.Security.Cryptography;
namespace StgSharp
{
public static partial class Operation
{
internal static void RegistForm(Form form)
{
}
public static void LoadTimeline()
{
}
}
}
-13
View File
@@ -1,13 +0,0 @@
namespace StgSharp
{
public static partial class Operation
{
//method used for chaging the value of paameters will be listed here
internal static void RenderNextFrame()
{
}
}
}
-21
View File
@@ -1,21 +0,0 @@
using StgSharp.Geometries;
using StgSharp.Math;
namespace StgSharp
{
public static unsafe partial class Geometry
{
public static unsafe Triangle InitTriagnle<T>(
vec3d vertex1,
vec3d vertex2,
vec3d vertex3
) where T : Triangle
{
Triangle t = new Triangle();
return t;
}
}
}
+1 -3
View File
@@ -7,8 +7,6 @@ namespace StgSharp
{
public static unsafe partial class Operation
{
/// <summary>
/// Get the status of a certain key on the keyboard.
/// </summary>
@@ -17,7 +15,7 @@ namespace StgSharp
/// <returns></returns>
public static KeyStatus GetKeyStatus(Form form, Key key)
{
return InternalIO.glfw.GetKey(form.windowID, (int)key);
return InternalIO.glfwGetKey(form.windowID, (int)key);
}
}
+4 -8
View File
@@ -37,8 +37,6 @@ namespace StgSharp
internal static extern unsafe void InternalLoadImage(string fileName, Image.ImageInfo* output, ImageLoader loader);
#endregion
internal static IglFramework glfw = null;
}
}
@@ -48,8 +46,6 @@ namespace StgSharp.Graphics
[UnmanagedFunctionPointer(CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
public delegate IntPtr ImageLoader(string name, ref int width, ref int height, ref int definedChannel, int desiredChannel);
[StructLayout(LayoutKind.Sequential)]
public struct GLcontext
{
@@ -192,8 +188,8 @@ namespace StgSharp.Graphics
internal unsafe delegate*<uint, uint, int, int, int, int, int, int, int, int, uint, uint, void> glBlitNamedFramebuffer;
internal unsafe delegate*<uint, uint, ulong, UIntPtr, void> glBufferAddressRangeNV;
internal unsafe delegate*<uint, uint, ulong, void> glBufferAttachMemoryNV;
internal unsafe delegate*<uint, UIntPtr, void*, uint, void> glBufferData;
internal unsafe delegate*<uint, UIntPtr, void*, uint, void> glBufferDataARB;
internal unsafe delegate*<uint, IntPtr, void*, uint, void> glBufferData;
internal unsafe delegate*<uint, IntPtr, void*, uint, void> glBufferDataARB;
internal unsafe delegate*<uint, IntPtr, UIntPtr, bool, void> glBufferPageCommitmentARB;
internal unsafe delegate*<uint, IntPtr, UIntPtr, uint, ulong, bool, void> glBufferPageCommitmentMemNV;
internal unsafe delegate*<uint, uint, int, void> glBufferParameteriAPPLE;
@@ -2459,8 +2455,8 @@ namespace StgSharp.Graphics
internal unsafe delegate*<uint, uint, bool, uint, void> glVertexAttribP4ui;
internal unsafe delegate*<uint, uint, bool, uint*, void> glVertexAttribP4uiv;
internal unsafe delegate*<uint, uint, int, void> glVertexAttribParameteriAMD;
internal unsafe delegate*<uint, int, uint, bool, uint, void*, void> glVertexAttribPointer;
internal unsafe delegate*<uint, int, uint, bool, uint, void*, void> glVertexAttribPointerARB;
internal unsafe delegate*<uint, int, uint, int, uint, void*, void> glVertexAttribPointer;
internal unsafe delegate*<uint, int, uint, int, uint, void*, void> glVertexAttribPointerARB;
internal unsafe delegate*<uint, int, uint, uint, void*, void> glVertexAttribPointerNV;
internal unsafe delegate*<uint, uint, double*, void> glVertexAttribs1dvNV;
internal unsafe delegate*<uint, uint, float*, void> glVertexAttribs1fvNV;
+11 -9
View File
@@ -20,6 +20,9 @@ namespace StgSharp
internal static unsafe partial class InternalIO
{
internal static Dictionary<TypeCode, uint> GLtype =
new Dictionary<TypeCode, uint>();
internal static IntPtr SSClibPtr = IntPtr.Zero;
internal const string SS_errorlog =
@@ -30,14 +33,13 @@ namespace StgSharp
static InternalIO()
{
GLtype.Add(typeof(float), GLconst.FLOAT);
GLtype.Add(typeof(int), GLconst.INT);
GLtype.Add(typeof(uint), GLconst.UNSIGNED_INT);
GLtype.Add(typeof(short), GLconst.SHORT);
GLtype.Add(typeof(ushort), GLconst.UNSIGNED_SHORT);
GLtype.Add(typeof(sbyte), GLconst.BYTE);
GLtype.Add(typeof(byte), GLconst.UNSIGNED_BYTE);
GLtype.Add(TypeCode.Single, GLconst.FLOAT);
GLtype.Add(TypeCode.Int32, GLconst.INT);
GLtype.Add(TypeCode.UInt32, GLconst.UNSIGNED_INT);
GLtype.Add(TypeCode.Int16, GLconst.SHORT);
GLtype.Add(TypeCode.UInt16, GLconst.UNSIGNED_SHORT);
GLtype.Add(TypeCode.SByte, GLconst.BYTE);
GLtype.Add(TypeCode.Byte, GLconst.UNSIGNED_BYTE);
}
internal static T InternalLoadProc<T>(IntPtr libPtr, string name) where T : Delegate
@@ -48,7 +50,7 @@ namespace StgSharp
T ret = Marshal.GetDelegateForFunctionPointer<T>(procPtr);
return ret;
}
catch (Exception ex)
catch (Exception)
{
throw;
}
-15
View File
@@ -1,15 +0,0 @@
using StgSharp.Math;
using System;
using System.Collections.Generic;
using System.Text;
namespace StgSharp.Controlling
{
public static partial class Control
{
public static unsafe void RecycleMappedVec(Vec4d vec)
{
}
}
}
-15
View File
@@ -1,15 +0,0 @@
using StgSharp.Geometries;
namespace StgSharp.Controlling
{
public static class Remove
{
public static void Point(Point p)
{
}
}
}
@@ -1,12 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace StgSharp.Controlling
{
internal static partial class TimeLine
{
}
}