Jump to content
  • Advertisement
Sign in to follow this  
disruption

Digital display

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

when trying the arc ball code (lesson48) or similar I get: 2: digital input cannot display this video mode. This is in the middle of screen, the machine locks up and cannot escape. How can I set things up for a digital system?

Share this post


Link to post
Share on other sites
Advertisement
you need to make sure the display can show the resoultion and colour depth you are asking for.

There is no direct OpenGL well to find out this information, it is platform dependant

Share this post


Link to post
Share on other sites
I assume you (disruption) are still running linux w/ X windows system :)

With XF86VidModeGetAllModeLines you can get the mode lines supported. After picking one you think is okay, you can use XF86VidModeSwitchToMode to set it.

From the man page:

#include <X11/extensions/xf86vmode.h>

Bool XF86VidModeGetAllModeLines(
Display *display,
int screen,
int *modecount_return,
XF86VidModeModeInfo ***modesinfo);

Bool XF86VidModeSwitchToMode(
Display *display,
int screen,
XF86VidModeModeInfo *modeline);


Btw: I though that is the reason you are already binding with Xxf86vm :)


EDIT: With XF86VidModeValidateMode you can also check whether a mode is valid w.r.t. your gfx card and monitor.

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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!