フルスクリーンモードの切り替え
Windowモードとフルスクリーンモードの切り替えを行うスケルトンアプリケーションを作成中。
その辺に転がっていたサンプルコードを頼りに色々いじってみたんだけど、あるサンプルコードを使うと、フルスクリーンモードに切り替えた瞬間にエラーになって先に進めない。別のサンプルコードを使うと、既に開いている他のアプリケーションのウィンドウが縮んでしまう。どちらもちょっと切ない。
前に紹介したNeHe Productionsのサンプルコードだと、エラーになるのでどれもフルスクリーンモードに切り替えが出来なかったんだけど、少しコードを追ってみたらもう一つのサンプルコードの問題である他のアプリのウィンドウが縮んでしまうことはないみたいなので、こっちを集中的にデバッグすることにした。結論から言うと、フルスクリーンモードに切り替えるときのアトリビュートのパラメータが少なかったため。
- (NSOpenGLPixelFormat *) createPixelFormat:(NSRect)frameにNSOpenGLPFAScreenMaskとメインのディスプレイのIDを追加してやれば動くぞ。なんだかものすごく局地的な話題だけど、気にしない。なんかの役に立つこともあるかもしれない。
とりあえず、作りかけのスケルトンアプリケーションはHDの肥やしになりました。
ベーシックな機能を実装してほげMMORPGの基礎にしようっと。
You'd tremendous guidelines here. I did a research on the issue and observed that quite possibly many people will agree with your website.
For some reason only half of the submit has been displayed, could it be my browser or the website?
talented listing you accept
Excellent brief and this article helped me alot. Say thank you I looking for your information… and my seotons.
Another fab blog post!
I admire the valuable info you provide inside your articles or blog posts. I will bookmark your blog and have my kids examine up right here typically. I'm fairly positive they'll learn lots of new stuff right here than anyone else!