daily update on 20240209 by nitload youmu
This commit is contained in:
@@ -752,7 +752,7 @@ namespace StgSharp.Graphics
|
||||
/// <returns>The funtion pointer of the api in form of <see cref="IntPtr"/></returns>
|
||||
public static IntPtr LoadGLfunc(string name)
|
||||
{
|
||||
IntPtr ret = InternalIO.glfw.GetProcAddress(name);
|
||||
IntPtr ret = InternalIO.glfwGetProcAddress(name);
|
||||
if (ret == default)
|
||||
{
|
||||
InternalIO.InternalAppendLog(
|
||||
@@ -984,7 +984,7 @@ namespace StgSharp.Graphics
|
||||
#region load
|
||||
contextPtr->glBeginQuery = (delegate*<uint, uint, void>)load("glBeginQuery");
|
||||
contextPtr->glBindBuffer = (delegate*<uint, uint, void>)load("glBindBuffer");
|
||||
contextPtr->glBufferData = (delegate*<uint, UIntPtr, void*, uint, void>)load("glBufferData");
|
||||
contextPtr->glBufferData = (delegate*<uint, IntPtr, void*, uint, void>)load("glBufferData");
|
||||
contextPtr->glBufferSubData = (delegate*<uint, IntPtr, UIntPtr, void*, void>)load("glBufferSubData");
|
||||
contextPtr->glDeleteBuffers = (delegate*<uint, uint*, void>)load("glDeleteBuffers");
|
||||
contextPtr->glDeleteQueries = (delegate*<uint, uint*, void>)load("glDeleteQueries");
|
||||
@@ -1107,7 +1107,7 @@ namespace StgSharp.Graphics
|
||||
contextPtr->glVertexAttrib4ubv = (delegate*<uint, byte*, void>)load("glVertexAttrib4ubv");
|
||||
contextPtr->glVertexAttrib4uiv = (delegate*<uint, uint*, void>)load("glVertexAttrib4uiv");
|
||||
contextPtr->glVertexAttrib4usv = (delegate*<uint, ushort*, void>)load("glVertexAttrib4usv");
|
||||
contextPtr->glVertexAttribPointer = (delegate*<uint, int, uint, bool, uint, void*, void>)load("glVertexAttribPointer");
|
||||
contextPtr->glVertexAttribPointer = (delegate*<uint, int, uint, int, uint, void*, void>)load("glVertexAttribPointer");
|
||||
|
||||
#endregion
|
||||
InternalIO.InternalAppendLog("Successfully load all OpenGL 2.0 APIs");
|
||||
|
||||
Reference in New Issue
Block a user