Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: aglSetFullScreen - Blank Screen



I would check to make sure that you are resetting your viewport and projection matrix when you switch window sizes and video modes. This can sometimes cause your renderings to be "offscreen".

- Bob

----- Original Message ----- From: "Patrick Rutkowski" <email@hidden>
To: <email@hidden>
Sent: Monday, May 19, 2008 7:21 AM
Subject: aglSetFullScreen - Blank Screen



Let me say in advance that I haven't the slightest clue what's wrong here,
and I've been banging my head against the wall for a few hours now;
so any help would be very greatly appreciated.


I have this application which I want to be able to switch between
full screen mode and windowed mode on command without
relaunching the app.

So I wrote up the code, but there's just this one problem. Whenever
I switch from windowed mode to FS mode I get a blank screen.
If I start the app initially in FS mode then the FS mode works OK.
I can then hit 'F' (the key I assigned for the task), to switch it to windowed
mode. Hitting 'F' again should bring it back to FS mode, but instead
I just get a blank screen.


The code that sets up the fullscreen mode can be found here:
http://www.rutski89.com:31597/upload/fs.txt

Remember, it works on the first call, yet fails on the second;
and I just can't figure out why. By "fails" I don't mean a return
value of GL_FALSE, I just mean that the screen goes black.

-Patrick

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Mac-opengl mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/mac-opengl/email@hidden

This email sent to email@hidden

__________ Information from ESET NOD32 Antivirus, version of virus signature database 3109 (20080519) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com



_______________________________________________ Do not post admin requests to the list. They will be ignored. Mac-opengl mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/mac-opengl/email@hidden

This email sent to email@hidden
References: 
 >aglSetFullScreen - Blank Screen (From: Patrick Rutkowski <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.