Archived

This topic is now archived and is closed to further replies.

DarkAstaroth

offscreen

Recommended Posts

Anyone got an example of using CreateBitmap/CreateCompatibleDC to make an offscreen render context for OpenGL? ... I''m going a bit nuts trying to get this to work cheers -darkness

Share this post


Link to post
Share on other sites
I''d suggest using double buffering, then using the back buffer to draw to. This will keep your acceleration and it won''t appear on screen.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
OR look at using Pixel Buffers through the PBuffer extension.

WGL_ARB_pbuffer

OpenGL Extension Registry - http://oss.sgi.com/projects/ogl-sample/registry/

Share this post


Link to post
Share on other sites
*lol* Oooooohhhhhh!!! Ur doing offscreen buffering and you''re mixing the Win32 GDI with OpenGL...

What the hell is wrong wit u boi???

>OR look at using Pixel Buffers through the PBuffer extension.
Now whoever posted this was damned near enough a genius! Sheer genius!!!

>WGL_ARB_pbuffer
>
>OpenGL Extension Registry - http://oss.sgi.com/projects/ogl->sample/registry/
Jeezus Christ he gave you the name of the extension to look into -AND- a handy link to the OpenGL extension registry!!! What more could you ask for? Ah hear yow cries!!!

Ok but seriously - I have no idea what you were thinking of using the Win32 GDI in a realtime environment... Geeeez... It''s just too slow mate, in fact the GDI is -infamous- for its (lack of) speed!

AH CAHNT BERLIEVE U WOZ TRY-YIN TEH MIX THE TU!!!

Share this post


Link to post
Share on other sites
I''m sorry.

I didn''t mean to be nasty about it - I was in a jokey kind of mood when I wrote that message and I didn''t mean it to come across as malicious in any way.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Use double buffering, or look into nehe.gamedev.net... one of his last tutorials dealt with rendering to a texture. I''m not sure exactly what you''re trying to accomplish, so I don''t know what advice to give you.

Billy

Share this post


Link to post
Share on other sites