use modular initing system rather than calling Init() method.
This commit is contained in:
@@ -48,6 +48,7 @@ namespace StgSharp.Graphics.OpenGL
|
||||
|
||||
public static GlHandle Zero
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
get => new GlHandle
|
||||
{
|
||||
Value = 0
|
||||
@@ -55,7 +56,7 @@ namespace StgSharp.Graphics.OpenGL
|
||||
}
|
||||
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static GlHandle Alloc(uint value)
|
||||
public static GlHandle Create(uint value)
|
||||
{
|
||||
return new GlHandle
|
||||
{
|
||||
@@ -64,7 +65,7 @@ namespace StgSharp.Graphics.OpenGL
|
||||
}
|
||||
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static GlHandle SignedAlloc(int value)
|
||||
public static GlHandle CreateSigned(int value)
|
||||
{
|
||||
return new GlHandle
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user