Hello Guest

sRGB Framebuffers

  • 4 Replies
  • 5534 Views
sRGB Framebuffers
« on: February 23, 2012, 20:35:46 »
In LWJGL, is it possible to create SRGB framebuffers?

*

Offline spasi

  • *****
  • 2261
    • WebHotelier
Re: sRGB Framebuffers
« Reply #1 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).

Re: sRGB Framebuffers
« Reply #2 on: February 28, 2012, 22:19:24 »
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!

*

Offline elect

  • *
  • 20
Re: sRGB Framebuffers
« Reply #3 on: September 01, 2015, 12:45:33 »
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?

Code: [Select]
unsigned int defaults(unsigned int displayMode, int &width, int &height)
{
    return displayMode | GLUT_SRGB;
}

Reference

*

Offline spasi

  • *****
  • 2261
    • WebHotelier
Re: sRGB Framebuffers
« Reply #4 on: September 01, 2015, 13:05:44 »
Looks like it, yes.