I am trying to create a single openGl window with some background color picked in RGB color picker but it looks like I am missing something important in this function. When I want to set color to standard, for example red color, it works.
glClearColor(1.0f, 0.0f, 0.0f, 1.0f);
184, 213, 238, 1
glClearColor(184.0f, 213.0f, 238.0f, 1.0f);
See the Khronos documentation page for
glClearColor, which clearly says:
void glClearColor(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
glClearColorspecifies the red, green, blue, and alpha values used by glClear to clear the color buffers. Values specified by glClearColor are clamped to the range [0,1].
This means the parameters are floating point values in the range from 0.0 to 1.0. Adapt your code like this:
glClearColor(184.0f/255.0f, 213.0f/255.0f, 238.0f/255.0f, 1.0f);