Jump to content
  • Advertisement
Sign in to follow this  
jtza8

Full Screen OpenGL in Cocoa

This topic is 2615 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I've been trying to create a full screen window which houses an NSView on which OpenGL is rendered, which appears to be the standard way of doing things in Mac OS 10.6+. After switching display modes, using Quartz (i.e. CGCaptureAllDisplayModes and CGDisplaySetDisplayMode) I'm left with a black screen and the mouse cursor. Seems like I'm switching out of the window-manager this way.

Any links/clues on what I should do to draw an existing OpenGL context to a full screen view using an alternate display mode?

Help would be much appreciated, for which I also thank you greatly in advance.

Share this post


Link to post
Share on other sites
Advertisement

I've been trying to create a full screen window which houses an NSView on which OpenGL is rendered, which appears to be the standard way of doing things in Mac OS 10.6+. After switching display modes, using Quartz (i.e. CGCaptureAllDisplayModes and CGDisplaySetDisplayMode) I'm left with a black screen and the mouse cursor. Seems like I'm switching out of the window-manager this way.

Any links/clues on what I should do to draw an existing OpenGL context to a full screen view using an alternate display mode?

Help would be much appreciated, for which I also thank you greatly in advance.


Never mind, I figured it out. If anyone ever reads this, the actual method to follow is found at http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/CocoaDrawingGuide/AdvancedDrawing/AdvancedDrawing.html Under the title "Full-Screen Drawing in OpenGL".<br>

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!