Advertisement Jump to content
Sign in to follow this  
fyhuang

OpenGL OpenGL gamma correction/Linux?

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

Hello, I'm trying to put gamma correction into my OpenGL program (it's running on Linux/GLX if that makes a difference). I know this sounds like a simple problem but I seriously have not found a single article (through Google) that explains this or even just gives a single line of code. Any help would be greatly appreciated. Thanks in advance!

Share this post


Link to post
Share on other sites
Advertisement
There's almost no documentation about these functions:


XF86VidModeGetGamma(
Display *display,
int screen,
XF86VidModeGamma *Gamma);

XF86VidModeSetGamma(
Display *display,
int screen,
XF86VidModeGamma *Gamma);

XF86VidModeGetGammaRamp(
Display *display,
int screen,
int size,
unsigned short *red array,
unsigned short *green array,
unsigned short *blue array);

XF86VidModeSetGammaRamp(
Display *display,
int screen,
int size,
unsigned short *red array,
unsigned short *green array,
unsigned short *blue array);

XF86VidModeGetGammaRampSize(
Display *display,
int screen,
int *size);




They are part of the XF86VidMode extension, most of the other functions are documented in the extension except these.

ch.

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!