OpenTK.Platform.Egl.EglX11PlatformFactory.CreateGLContext C# (CSharp) Method

CreateGLContext() public method

public CreateGLContext ( ContextHandle handle, IWindowInfo window, IGraphicsContext shareContext, bool directRendering, int major, int minor, GraphicsContextFlags flags ) : IGraphicsContext
handle ContextHandle
window IWindowInfo
shareContext IGraphicsContext
directRendering bool
major int
minor int
flags GraphicsContextFlags
return IGraphicsContext
        public override IGraphicsContext CreateGLContext(ContextHandle handle, IWindowInfo window, IGraphicsContext shareContext, bool directRendering, int major, int minor, GraphicsContextFlags flags)
        {
            X11WindowInfo x11_win = (X11WindowInfo)window;
            EglWindowInfo egl_win = new OpenTK.Platform.Egl.EglWindowInfo(x11_win.Handle, Egl.GetDisplay(x11_win.Display));
            return new EglContext(handle, egl_win, shareContext, major, minor, flags);
        }

Same methods

EglX11PlatformFactory::CreateGLContext ( OpenTK.Graphics.GraphicsMode mode, IWindowInfo window, IGraphicsContext shareContext, bool directRendering, int major, int minor, GraphicsContextFlags flags ) : IGraphicsContext