Archived

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

nikadeemus

Rendering Contexts and Pixel Formats

Recommended Posts

nikadeemus    122
Is it possible to change the pixel format of the rending context without destroying and recreating the rendering context? The reason I ask is because when I change the rendering window’s color depth I destroy then recreate the rendering context and any textures that I created with the old rendering context are destroyed. I’m sure many other things are changed as well. Render states vertex buffers, display list. Is there any way to get around this? I don’t see any way in the MSDN documentation provided with VC++. Walter Byers walter.byers@mnsu.edu

Share this post


Link to post
Share on other sites
Basiror    241
if you don t want to reload the textures you could create an invisible window create a render contex for it load the textures into this contex and share them via wglsharexyz
look the function name up in the redbook somewhere around page 649

Share this post


Link to post
Share on other sites