开发者

Force 4:3 in fullscreen mode

开发者 https://www.devze.com 2022-12-30 18:33 出处:网络
Does anybody know how to force 4:3 when enabling fullscreen mode using OpenGL and 开发者_StackOverflow社区AGL?Create a fullscreen window, then call glViewport with the approriate parameters in order t

Does anybody know how to force 4:3 when enabling fullscreen mode using OpenGL and 开发者_StackOverflow社区AGL?


Create a fullscreen window, then call glViewport with the approriate parameters in order to select the 4:3 area.


Create a regular context at the native resolution of the display and then make a FBO with the desired aspect ratio, render your scene to that, and then use the FBO texture to render a quad with the correct aspect ratio to the screen.

0

精彩评论

暂无评论...
验证码 换一张
取 消