daily update on 20240828 by nitload youmu, autotexture added
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
//-----------------------------------------------------------------------
|
||||
//-----------------------------------------------------------------------
|
||||
// file="GLhandle.cs"
|
||||
// file="GlHandle.cs"
|
||||
// Project: StgSharp
|
||||
// AuthorGroup: Nitload Space
|
||||
// Copyright (c) Nitload Space. All rights reserved.
|
||||
@@ -49,24 +49,25 @@ namespace StgSharp.Graphics.OpenGL
|
||||
[StructLayout(LayoutKind.Explicit, Size = 4)]
|
||||
public struct GlHandle
|
||||
{
|
||||
[FieldOffset(0)] public uint Value;
|
||||
|
||||
[FieldOffset(0)] public int SignedValue;
|
||||
[FieldOffset(0)] public uint Value;
|
||||
|
||||
public static GlHandle Zero
|
||||
{
|
||||
get => new GlHandle { Value = 0 };
|
||||
}
|
||||
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static GlHandle Alloc(uint value)
|
||||
{
|
||||
return new GlHandle() { Value = value };
|
||||
return new GlHandle { Value = value };
|
||||
}
|
||||
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static GlHandle SignedAlloc(int value)
|
||||
{
|
||||
return new GlHandle() { SignedValue = value };
|
||||
}
|
||||
|
||||
public static GlHandle Zero
|
||||
{
|
||||
get => new GlHandle() { Value = 0 };
|
||||
return new GlHandle { SignedValue = value };
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user