daily update on 20230927 by nitload youmu, all polygon4 display available, optimizing on C/C# interoperation
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -110,7 +110,7 @@ namespace StgSharp
|
||||
#if DEBUG
|
||||
Console.WriteLine(name);
|
||||
#endif
|
||||
return (IntPtr)0b1111111111;
|
||||
return internalIO.glfwGetProcAddress(name);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -1912,7 +1912,7 @@ namespace StgSharp
|
||||
internal unsafe delegate void PFNGLDELETEBUFFERSPROC(int n, uint* buffers);
|
||||
internal unsafe delegate void PFNGLGENBUFFERSPROC(int n, uint* buffers);
|
||||
internal unsafe delegate bool PFNGLISBUFFERPROC(uint buffer);
|
||||
internal unsafe delegate void PFNGLBUFFERDATAPROC(int target, int* size, void* data, int usage);
|
||||
internal unsafe delegate void PFNGLBUFFERDATAPROC(int target, int size, void* data, int usage);
|
||||
internal unsafe delegate void PFNGLBUFFERSUBDATAPROC(int target, long offset, int* size, void* data);
|
||||
internal unsafe delegate void PFNGLGETBUFFERSUBDATAPROC(int target, long offset, int* size, void* data);
|
||||
internal unsafe delegate void PFNGLMAPBUFFERPROC(int target, int access);
|
||||
@@ -1944,9 +1944,9 @@ namespace StgSharp
|
||||
internal unsafe delegate void PFNGLGETATTACHEDSHADERSPROC(uint program, int maxCount, int* count, uint* shaders);
|
||||
internal unsafe delegate int PFNGLGETATTRIBLOCATIONPROC(uint program, sbyte* name);
|
||||
internal unsafe delegate void PFNGLGETPROGRAMIVPROC(uint program, int pname, int* parameters);
|
||||
internal unsafe delegate void PFNGLGETPROGRAMINFOLOGPROC(uint program, int bufSize, int* length, sbyte* infoLog);
|
||||
internal unsafe delegate void PFNGLGETPROGRAMINFOLOGPROC(uint program, int bufSize, int* length, byte* infoLog);
|
||||
internal unsafe delegate void PFNGLGETSHADERIVPROC(uint shader, int pname, int* parameters);
|
||||
internal unsafe delegate void PFNGLGETSHADERINFOLOGPROC(uint shader, int bufSize, int* length, sbyte* infoLog);
|
||||
internal unsafe delegate void PFNGLGETSHADERINFOLOGPROC(uint shader, int bufSize, int* length, byte* infoLog);
|
||||
internal unsafe delegate void PFNGLGETSHADERSOURCEPROC(uint shader, int bufSize, int* length, sbyte* source);
|
||||
internal unsafe delegate int PFNGLGETUNIFORMLOCATIONPROC(uint program, sbyte* name);
|
||||
internal unsafe delegate void PFNGLGETUNIFORMFVPROC(uint program, int location, float* parameters);
|
||||
@@ -1958,7 +1958,7 @@ namespace StgSharp
|
||||
internal unsafe delegate bool PFNGLISPROGRAMPROC(uint program);
|
||||
internal unsafe delegate bool PFNGLISSHADERPROC(uint shader);
|
||||
internal unsafe delegate void PFNGLLINKPROGRAMPROC(uint program);
|
||||
internal unsafe delegate void PFNGLSHADERSOURCEPROC(uint shader, int count, sbyte** str, int* length);
|
||||
internal unsafe delegate void PFNGLSHADERSOURCEPROC(uint shader, int count, byte** str, int* length);
|
||||
internal unsafe delegate void PFNGLUSEPROGRAMPROC(uint program);
|
||||
internal unsafe delegate void PFNGLUNIFORM1FPROC(int location, float v0);
|
||||
internal unsafe delegate void PFNGLUNIFORM2FPROC(int location, float v0, float v1);
|
||||
|
||||
@@ -62,41 +62,14 @@ namespace StgSharp
|
||||
{
|
||||
throw new Exception("Do not init GLAD twice.");
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/*
|
||||
/// <summary>
|
||||
/// Init a form, attach its data to GLFW program,
|
||||
/// and return the pointer of the GLFW package of the form.
|
||||
/// </summary>
|
||||
/// <param name="form">The C# instance of the form</param>
|
||||
/// <returns>Pointer of the GLFW package of this form</returns>
|
||||
/// <exception cref="Exception">The issue that form is not successfully initilized
|
||||
/// or GLAD program fail to init</exception>
|
||||
public static unsafe IntPtr InitWindow(Form form)
|
||||
{
|
||||
IntPtr a = internalIO.InternalInitWindow(form.info);
|
||||
if ((long)a == -1)
|
||||
{
|
||||
throw new Exception("Failed to init form.");
|
||||
}
|
||||
else if ((long)a == -2)
|
||||
{
|
||||
throw new Exception("Failed to load GLAD program.");
|
||||
}
|
||||
else
|
||||
{
|
||||
return a;
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user