Jump to content
  • Advertisement
Sign in to follow this  
nickme

opengl:how to open a HD window

This topic is 2527 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

hi guy,
i am having problem openning a 1920x1080 resolution window. when i openned a window with 600x600, the height of the window cover almost alll the height of my screen. further testing revealed that my screen is only 1080x720 resolution. but my monitor is samsung ex2220, which is 1920x1080 resolution. i think the opengl did not use the hd resolution. any idea?

thanks.

Share this post


Link to post
Share on other sites
Advertisement
When you're running at 1080x720, a 600x600 window should take up almost the entire height. Your monitor has a max resolution of 1920x1080, but that doesn't mean you are using that resolution all the time. I bet that if you tried opening a 1920x1080 window in fullscreen or increasing your used resolution to 1920x1080 you wouldn't have any problems.

Share this post


Link to post
Share on other sites
testing revealed that my screen is only 1080x720 resolution. but my monitor is samsung ex2220, which is 1920x1080 resolution.
This isn't OpenGL's fault -- your monitor isn't configured properly in your display control panel.

Share this post


Link to post
Share on other sites
hi,
hodgman: when i clicked start->contrl panel->display, i saw that my screen resolution is 1920x1080. is that mean this info is misleading? i mean it is not what it claim to be?

captacha: how do you open a window in full screen mode? i know i can run a program in smaller window and then drag the edge of the window to maximize it. it is dirty way to do it ,for sure.

thanks.

Share this post


Link to post
Share on other sites
When you create the window in your C++ code their is one flag that tells the application it is opened in windowed or fullscreen mode, I forgot/am to lazy to look this up on MSDN right now but it should be a trivial google search.

Less lazy: http://msdn.microsoft.com/en-us/library/ms632679(VS.85).aspx it's the WS_OVERLAPED flag you wanna change if i remeber correctly, the page will tell you anyway.

Share this post


Link to post
Share on other sites
i am having problem openning a 1920x1080 resolution window. when i openned a window with 600x600, the height of the window cover almost alll the height of my screen. further testing revealed that my screen is only 1080x720 resolution. but my monitor is samsung ex2220, which is 1920x1080 resolution. i think the opengl did not use the hd resolution. any idea?[/quote]
when i clicked start->contrl panel->display, i saw that my screen resolution is 1920x1080. is that mean this info is misleading? i mean it is not what it claim to be?[/quote]

How are you creating your program?
Is it HTML or Java or C++ etc, and what development environment are you using?

It's possible that your development environment uses coordinates that aren't exactly pixels.

Share this post


Link to post
Share on other sites
hi Erik Rufelt:
i used win7 VC++ 2010 express.

you said:
It's possible that your development environment uses coordinates that aren't exactly pixels.

i do not understand what you mean when you said the coordinates not exactly pixels.
thanks

Share this post


Link to post
Share on other sites
hi
i opened the window with the following statement:

glutInitWindowSize(600, 600);

and the window occuppied almost the whole height of the window. if it is 600x600, it should cover only one third of the height of the window right?

Share this post


Link to post
Share on other sites
I see, yes then you can probably ignore what I said. Sometimes HTML and javascript use other coordinate systems.
Take a screenshot of your screen with the window on, and measure the number of pixels in an image editor. And double-check the display resolution.

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!