// Find an appropriate visual
int doubleBufferVisual[] = {
- GLX_RGBA, // Needs to support OpenGL
- GLX_DEPTH_SIZE, 16, // Needs to support a 16 bit depth buffer
- GLX_DOUBLEBUFFER, // Needs to support double-buffering
- GLX_STEREO, // Needs to support stereo rendering
+ GLX_RENDER_TYPE, GLX_RGBA_BIT, // Needs to support OpenGL
+ GLX_RED_SIZE, 1,
+ GLX_GREEN_SIZE, 1,
+ GLX_BLUE_SIZE, 1,
+ GLX_ALPHA_SIZE, 1,
+ GLX_DEPTH_SIZE, 16, // Needs to support a 16 bit depth buffer
+ GLX_DOUBLEBUFFER, 1, // Needs to support double-buffering
+ GLX_STEREO, 1, // Needs to support stereo rendering
GLX_STENCIL_SIZE, 1,
- None // end of list
+ 0x20B2, 1, // Needs to support srgb profile
+ None // end of list
};
// Try for the double-bufferd visual first
#ifdef WIN32
fmt.setAlphaBufferSize(0);
#else
- fmt.setAlphaBufferSize(1);
+ fmt.setAlphaBufferSize(0);
#endif
fmt.setStereo(false);
fmt.setSamples(0);
myEventCallbackCommand.GetPointer(), 0.0);
-
+ getRenderer()->SetBackgroundAlpha(1.0);
+ myInteractor->getRenderWindow()->SetMultiSamples(0);
myInteractor->getRenderWindow()->Render();
setBackground( Qtx::BackgroundData( Qt::black ) ); // set default background
onResetView();
glClearColor( static_cast<GLclampf>(this->Background[0]),
static_cast<GLclampf>(this->Background[1]),
static_cast<GLclampf>(this->Background[2]),
- static_cast<GLclampf>(1.0));
+ static_cast<GLclampf>(this->BackgroundAlpha));
clear_mask |= GL_COLOR_BUFFER_BIT;
}