I am using OpenGL on Indy, Irix 5.3.
I want to create a transparent 3 dimensional cube and I have to rotate
the cube. I turned on the blending and 4 lights, the colour of the
material, and lights are all white. The cube looks very different
when drawn on a single or double buffer window. On a single buffer window,
the cube is blended properly. But on a double buffer window, small greenish
squares can be seen on the cube (I use glXSwapBuffers in the double
buffer window). Unfortunately, I can not use the single buffer window,
because of the flickering.
My question is : do I have to use other function calls in a double
buffer window ? My main program looks something like (glw is the
topLevel = XtAppInitialize
(&AppContext, /* Application context */
"Display", /* application class name */
(Cardinal) 0, (int *)&argc, (String*)argv, fallback_resources,
glw = XtVaCreateManagedWidget("glw", glwMDrawingAreaWidgetClass,
in the resource file, I set doublebuffer to TRUE for double buffer
and to FALSE for single buffer window:
My illustration probably is not very clear, so if you need to look at
my codes, I will send them to you.
Any comments are very much appreciated.