chris b
June 5th, 1999, 10:34 AM
I want to copy some opengl rendered scene into the clipboard. I can't just BitBlt the image into memory DC and put DC's bitmap into clipboard, because if only, say, half of my window with rendered scene is visible on the screen I would get only half of the image in the clipboard - the other half is rubbish. I know I could just render the image into a new memory DC, but I'm having problems there. It requires creating another opengl rendering context, but wglCreateContext(memDC, hGLRC) returns NULL.
Does this mean that I can have only one rendering context, or am I missing something of importance there???
here's how I try to create another RC:
.....
HGLRC newRC;
CDC memDC;
newRC = wglCreateContext(memDC); //<- i get NULL here
wglMakeCurrent(memDC, newRC);
...
thanx in advance!
chris b
Does this mean that I can have only one rendering context, or am I missing something of importance there???
here's how I try to create another RC:
.....
HGLRC newRC;
CDC memDC;
newRC = wglCreateContext(memDC); //<- i get NULL here
wglMakeCurrent(memDC, newRC);
...
thanx in advance!
chris b