Ejemplo n.º 1
0
 public void SetCurrentDisplayOpenGLTest()
 {
     TestRuntime.AssertNotVSTS();
     Assert.DoesNotThrow(() => {
         using var displayLink = new CVDisplayLink();
         displayLink.SetCurrentDisplay(CGDisplay.MainDisplayID);
     });
 }
        private void SetupDisplayLink()
        {
            // Create a display link capable of being used with all active displays
            displayLink = new CVDisplayLink();

            // Set the renderer output callback function
            displayLink.SetOutputCallback(MyDisplayLinkOutputCallback);

            // Set the display link for the current renderer
            CGLContext     cglContext     = openGLContext.CGLContext;
            CGLPixelFormat cglPixelFormat = PixelFormat.CGLPixelFormat;

            displayLink.SetCurrentDisplay(cglContext, cglPixelFormat);
        }
Ejemplo n.º 3
0
        void SetupDisplayLink()
        {
            _displayLink = new CVDisplayLink();

            // Set the renderer output callback function
            SetOutputCallback(_displayLink, DisplayLinkOutputCallback);

            // Set the display link for the current renderer
            var cglContext     = OpenGLContext.CGLContext;
            var cglPixelFormat = PixelFormat.CGLPixelFormat;

            _displayLink.SetCurrentDisplay(cglContext, cglPixelFormat);
            _displayLink.Start();
        }
Ejemplo n.º 4
0
		private void SetupDisplayLink ()
		{
			// Create a display link capable of being used with all active displays
			displayLink = new CVDisplayLink ();

			// Set the renderer output callback function
			displayLink.SetOutputCallback (MyDisplayLinkOutputCallback);

			// Set the display link for the current renderer
			CGLContext cglContext = openGLContext.CGLContext;
			CGLPixelFormat cglPixelFormat = PixelFormat.CGLPixelFormat;
			displayLink.SetCurrentDisplay (cglContext, cglPixelFormat);

		}