Exemple #1
0
        public MyEglWin(IntPtr hwnd, IntPtr eglDisplay, int major, int minor,
                        OpenTK.Graphics.GraphicsMode mode, GraphicsContextFlags flags)
        {
            Hwnd        = hwnd;
            _eglDisplay = eglDisplay;

            _egl_win       = new OpenTK.Platform.Egl.EglWindowInfo(hwnd, _eglDisplay);
            _eglWinContext = new EglWinContext(mode, _egl_win, null, major, minor, flags);
        }
        public override IGraphicsContext CreateGLContext(ContextHandle handle, IWindowInfo window,
                                                         IGraphicsContext shareContext, bool directRendering, int major, int minor, GraphicsContextFlags flags)
        {
            var angle_window = (IAngleWindowInfoInternal)window;
            var egl_window   = CreateWindowInfo(angle_window, major, flags);
            var egl_context  = new EglWinContext(handle, egl_window, shareContext, major, minor, flags);

            angle_window.EglContext = egl_context;
            return(egl_context);
        }