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); }
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(); }
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); }