public Session(WglContext context, IntPtr hdc, EglGlPlatformSurface.IEglWindowGlPlatformSurfaceInfo info, IDisposable clearContext) { _context = context; _hdc = hdc; _info = info; _clearContext = clearContext; }
public WglContext(WglContext sharedWith, GlVersion version, IntPtr context, IntPtr hWnd, IntPtr dc, int pixelFormat, PixelFormatDescriptor formatDescriptor) { Version = version; _sharedWith = sharedWith; _context = context; _hWnd = hWnd; _dc = dc; _pixelFormat = pixelFormat; _formatDescriptor = formatDescriptor; StencilSize = formatDescriptor.StencilBits; using (MakeCurrent()) GlInterface = new GlInterface(version, proc => { var ext = wglGetProcAddress(proc); if (ext != IntPtr.Zero) { return(ext); } return(GetProcAddress(WglDisplay.OpenGl32Handle, proc)); }); }
private WglPlatformOpenGlInterface(WglContext primary) { PrimaryContext = primary; }
public RenderTarget(WglContext context, EglGlPlatformSurface.IEglWindowGlPlatformSurfaceInfo info) { _context = context; _info = info; _hdc = context.CreateConfiguredDeviceContext(info.Handle); }
public WglGlPlatformSurface(WglContext context, EglGlPlatformSurface.IEglWindowGlPlatformSurfaceInfo info) { _context = context; _info = info; }