I need to write a simple visualizer for my mesh toolkit. The objects I'm working with is always located inside [-1,1]^3 box (inclusive), so I need to ensure that object will be entirely visible by user. I also want to have a possiblity to rotate a camera around object like user is "flying" around object.
That's how I'm doing this:
stat...
I usually create a pixel format using wglChoosePixelFormatARB() with these arguments (among others):
WGL_DOUBLE_BUFFER_ARB = GL_TRUE
WGL_SAMPLE_BUFFERS_ARB = GL_TRUE
WGL_SAMPLES_ARB = 4
i.e. doubke buffering on and x4 multi sampling. This works just fine.
But when I try to turn of the double buffering:
WGL_DOUBLE_BUFFER_ARB = GL_FALS...
I have a program that uses GLUT for its OpenGL rendering. Now I need it to be inside of a MFC project so that it can work with another program component.
I've followed this tutorial: 1/Setting-Up-OpenGL-in-an-MFC-Control.htm">http://www.codeguru.com/cpp/g-m/opengl/openfaq/article.php/c10975_1/Setting-Up-OpenGL-in-an-MFC-Control.htm
I ...