31 lines
661 B
C#
31 lines
661 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using System.Runtime.CompilerServices;
|
|
using Windows.Win32.Foundation;
|
|
|
|
|
|
#if Windows
|
|
using Microsoft.Win32.SafeHandles;
|
|
using Windows.Win32;
|
|
using Windows.Win32.Graphics.OpenGL;
|
|
using Windows.Win32.Graphics.Gdi;
|
|
|
|
namespace StgSharp.Envitronment.Win32
|
|
{
|
|
public class WGL
|
|
{
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static GlRenderContextHandle CreateContext(DeviceContextHandle param0)
|
|
{
|
|
return new(PInvoke.wglCreateContext(new HDC(param0.Value)).Value);
|
|
}
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
|
#endif |