lud2k
11-17-2008, 07:58 AM
Hello,
Is there any way to make a screen capture using OpenGL on Windows Vista (the whole screen) ?
I know it is possible to do it on MacOSX using glReadPixels but I can't find a way to do it on Windows.
I tried to do this get the screen DC using
HDC hScrDC = CreateDC( TEXT("DISPLAY"), NULL, NULL, NULL)
Then I created a pixel format and create a context with
wglCreateContext(hScrDC);
like they do in VLC for taking a screenshot on MacOSX but when I try to use wglMakeCurrent before calling glReadPixels it does not work. I also tried to make a copy using wglCopyContext but it still does't work.
Thanks.
Is there any way to make a screen capture using OpenGL on Windows Vista (the whole screen) ?
I know it is possible to do it on MacOSX using glReadPixels but I can't find a way to do it on Windows.
I tried to do this get the screen DC using
HDC hScrDC = CreateDC( TEXT("DISPLAY"), NULL, NULL, NULL)
Then I created a pixel format and create a context with
wglCreateContext(hScrDC);
like they do in VLC for taking a screenshot on MacOSX but when I try to use wglMakeCurrent before calling glReadPixels it does not work. I also tried to make a copy using wglCopyContext but it still does't work.
Thanks.