daily update on 20250122 by nitload youmu, architect rearrange
This commit is contained in:
@@ -59,9 +59,9 @@ namespace StgSharp.Graphics.OpenGL
|
||||
//--------------------------------------------------------------------------------
|
||||
|
||||
/// <summary>
|
||||
/// Get the function pointer of given OpenGL api name
|
||||
/// Get the function pointer of given OpenGL api _name
|
||||
/// </summary>
|
||||
/// <param name="name"> ContextName of the OpenGL api </param>
|
||||
/// <param _name="name"> ContextName of the OpenGL api </param>
|
||||
/// <returns> The funtion pointer of the api in stream of <see cref="IntPtr" /></returns>
|
||||
public static IntPtr LoadGLfunc( string name )
|
||||
{
|
||||
@@ -77,7 +77,7 @@ namespace StgSharp.Graphics.OpenGL
|
||||
/// <summary>
|
||||
/// Load all supported OpenGL APIs and bind them to given <see cref="ViewPort" />.
|
||||
/// </summary>
|
||||
/// <param name="contextHandle"> The handle to current OpenGL viewPortDisplay </param>
|
||||
/// <param _name="contextHandle"> The handle to current OpenGL viewPortDisplay </param>
|
||||
public static unsafe void LoadOpenGLApiTo( IntPtr contextHandle )
|
||||
{
|
||||
OpenglContext* context = ( OpenglContext* )contextHandle;
|
||||
@@ -151,7 +151,7 @@ namespace StgSharp.Graphics.OpenGL
|
||||
}
|
||||
|
||||
int extensionCount;
|
||||
context->glGetIntegerv( GLconst.NUM_EXTENSIONS, &extensionCount );
|
||||
context->glGetIntegerv( glConst.NUM_EXTENSIONS, &extensionCount );
|
||||
if( extensionCount == 0 ) {
|
||||
InternalIO.InternalWriteLog(
|
||||
"No supported OpenGL extensions are found.", LogType.Info );
|
||||
@@ -161,7 +161,7 @@ namespace StgSharp.Graphics.OpenGL
|
||||
List<string> extensions = new List<string>();
|
||||
|
||||
for( uint i = 0; i < extensionCount; i++ ) {
|
||||
byte* strPtr = context->glGetStringi( GLconst.EXTENSIONS, i );
|
||||
byte* strPtr = context->glGetStringi( glConst.EXTENSIONS, i );
|
||||
extensions.Add( Marshal.PtrToStringAnsi( ( IntPtr )strPtr ) );
|
||||
}
|
||||
|
||||
@@ -3219,7 +3219,7 @@ namespace StgSharp.Graphics.OpenGL
|
||||
"glStencilOpSeparate" );
|
||||
contextPtr->glUniform1f = ( delegate*<int, float, void> )load(
|
||||
"glUniform1f" );
|
||||
contextPtr->glUniform1fv = ( delegate*<int, uint, Vec4*, void> )load(
|
||||
contextPtr->glUniform1fv = ( delegate*<int, uint, M128*, void> )load(
|
||||
"glUniform1fv" );
|
||||
contextPtr->glUniform1i = ( delegate*<int, int, void> )load(
|
||||
"glUniform1i" );
|
||||
|
||||
Reference in New Issue
Block a user