Inheritance: OpenTK.Graphics.GraphicsContextBase
Example #1
0
 internal void UnsetFullscreen(AglContext context)
 {
     context.UnsetFullScreen(window);
     Debug.Print("Telling Carbon to reset window state to " + windowState.ToString());
     SetCarbonWindowState();
     SetSize((short)windowedBounds.Width, (short)windowedBounds.Height);
 }
Example #2
0
        internal void SetFullscreen(AglContext context)
        {
            windowedBounds = bounds;

            int width, height;

            context.SetFullScreen(window, out width, out height);

            Debug.Print("Prev Size: {0}, {1}", Width, Height);
            clientRectangle.Size = new Size(width, height);
            Debug.Print("New Size: {0}, {1}", Width, Height);

            // TODO: if we go full screen we need to make this use the device specified.
            var displayBounds = mDisplayDevice.Bounds;

            bounds = new Rectangle(
                displayBounds.X,
                displayBounds.Y,
                displayBounds.Width,
                displayBounds.Height);


            //LayoutFarm.Drawing.Conv.ToRect(mDisplayDevice.Bounds);


            windowState = WindowState.Fullscreen;
        }
Example #3
0
        internal void SetFullscreen(AglContext context)
        {
            this.windowedBounds = this.bounds;
            int width;
            int height;

            context.SetFullScreen(this.window, out width, out height);
            this.clientRectangle.Size = new Size(width, height);
            this.bounds      = this.mDisplayDevice.Bounds;
            this.windowState = WindowState.Fullscreen;
        }
Example #4
0
        internal void SetFullscreen(AglContext context)
        {
            windowedBounds = bounds;
            int width, height;

            context.SetFullScreen(window, out width, out height);

            Debug.Print("Prev Size: {0}, {1}", Width, Height);
            clientRectangle.Size = new Size(width, height);
            Debug.Print("New Size: {0}, {1}", Width, Height);

            // TODO: if we go full screen we need to make this use the device specified.
            bounds      = mDisplayDevice.Bounds;
            windowState = WindowState.Fullscreen;
        }
Example #5
0
        public override IntPtr GetAddress(string function)
        {
            string s = "_" + function;

            if (!AglContext.NSIsSymbolNameDefined(s))
            {
                return(IntPtr.Zero);
            }
            IntPtr symbol = AglContext.NSLookupAndBindSymbol(s);

            if (symbol != IntPtr.Zero)
            {
                symbol = AglContext.NSAddressOfSymbol(symbol);
            }
            return(symbol);
        }
        internal void UnsetFullscreen(AglContext context)
        {
            context.UnsetFullScreen(window);

            Debug.Print("Telling Carbon to reset window state to " + windowState.ToString());
            SetCarbonWindowState();

            SetSize((short)windowedBounds.Width, (short)windowedBounds.Height);
        }
        internal void SetFullscreen(AglContext context)
        {
            windowedBounds = bounds;
            int width, height;
            context.SetFullScreen(window, out width, out height);

            Debug.Print("Prev Size: {0}, {1}", Width, Height);
            clientRectangle.Size = new Size(width, height);
            Debug.Print("New Size: {0}, {1}", Width, Height);

            // TODO: if we go full screen we need to make this use the device specified.
            bounds = mDisplayDevice.Bounds;
            windowState = WindowState.Fullscreen;
        }
Example #8
0
 internal void UnsetFullscreen(AglContext context)
 {
   context.UnsetFullScreen(this.window);
   this.SetCarbonWindowState();
   this.SetSize((short) this.windowedBounds.Width, (short) this.windowedBounds.Height);
 }
Example #9
0
 internal void SetFullscreen(AglContext context)
 {
   this.windowedBounds = this.bounds;
   int width;
   int height;
   context.SetFullScreen(this.window, out width, out height);
   this.clientRectangle.Size = new Size(width, height);
   this.bounds = this.mDisplayDevice.Bounds;
   this.windowState = WindowState.Fullscreen;
 }
Example #10
0
 private void SetDrawable(CarbonWindowInfo carbonWindow)
 {
     Agl.aglSetDrawable(this.Handle.Handle, AglContext.GetWindowPortForWindowInfo(carbonWindow));
     this.MyAGLReportError("aglSetDrawable");
 }
Example #11
0
 internal void UnsetFullscreen(AglContext context)
 {
     context.UnsetFullScreen(this.window);
     this.SetCarbonWindowState();
     this.SetSize((short)this.windowedBounds.Width, (short)this.windowedBounds.Height);
 }
Example #12
0
        internal void SetFullscreen(AglContext context)
        {
            windowedBounds = bounds;
            int width, height;
            context.SetFullScreen(window, out width, out height);
            Debug.Print("Prev Size: {0}, {1}", Width, Height);
            clientRectangle.Size = new Size(width, height);
            Debug.Print("New Size: {0}, {1}", Width, Height);
            // TODO: if we go full screen we need to make this use the device specified.
            var displayBounds = mDisplayDevice.Bounds;
            bounds = new Rectangle(
                displayBounds.X,
                displayBounds.Y,
                displayBounds.Width,
                displayBounds.Height);
            //LayoutFarm.Drawing.Conv.ToRect(mDisplayDevice.Bounds);


            windowState = WindowState.Fullscreen;
        }