sRGB Framebuffers

Started by integeruser, February 23, 2012, 20:35:46

Previous topic - Next topic

integeruser

In LWJGL, is it possible to create SRGB framebuffers?

spasi

Yes. You need to check for the GL_ARB_framebuffer_sRGB extension and use new PixelFormat(...).withSRGB(true).

integeruser

Thank you for the response, i've already tried withSRGB(true) but it seems not work. I have now checked the extension and its value is true, so i have the requisites...I'll re-check my code, if i don't find what is wrong i'll write here!

elect

Quote from: spasi on February 25, 2012, 22:54:59
Yes. You need to check for the GL_ARB_framebuffer_sRGB extension and use new PixelFormat(...).withSRGB(true).

is PixelFormat().withSRGB(true) equals to this in FreeGLUT?

unsigned int defaults(unsigned int displayMode, int &width, int &height)
{
    return displayMode | GLUT_SRGB;
}


Reference

spasi