Example #1
0
 public GlxContext(GlxInterface glx, IntPtr handle, GlxDisplay display, X11Info x11, IntPtr defaultXid)
 {
     Handle      = handle;
     Glx         = glx;
     _x11        = x11;
     _defaultXid = defaultXid;
     Display     = display;
 }
Example #2
0
 public RestoreContext(GlxInterface glx, IntPtr defaultDisplay)
 {
     _glx            = glx;
     _defaultDisplay = defaultDisplay;
     _display        = _glx.GetCurrentDisplay();
     _context        = _glx.GetCurrentContext();
     _read           = _glx.GetCurrentReadDrawable();
     _draw           = _glx.GetCurrentDrawable();
 }
Example #3
0
 public GlxContext(GlxInterface glx, IntPtr handle, GlxDisplay display,
                   GlVersion version, int sampleCount, int stencilSize,
                   X11Info x11, IntPtr defaultXid,
                   bool ownsPBuffer)
 {
     Handle       = handle;
     Glx          = glx;
     _x11         = x11;
     _defaultXid  = defaultXid;
     _ownsPBuffer = ownsPBuffer;
     Display      = display;
     Version      = version;
     SampleCount  = sampleCount;
     StencilSize  = stencilSize;
     using (MakeCurrent())
         GlInterface = new GlInterface(version, GlxInterface.SafeGetProcAddress);
 }