Hello Guest

sRGB Framebuffers

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

*

Online spasi

  • *****
  • 2207
    • 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

*

Online spasi

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