PDA

View Full Version : Using NVIDIA Pbuffer extensions on windowless activeX control : How ???



oritks
03-25-2003, 12:52 AM
Hi,
I am developing a windowless activeX control, which does some drawing using OpenGL on an NVIDIA graphic card.
Some of the graphics is written into the P_BUFFER .
It works well when the control is activated on a GLUT window.
When I tried to activate the control on a simple MFC dialog, I found out that the NVIDIA P_BUFFER extensions are not available.
How can I access the NVIDIA PBUFFER extensions on an MFC application window, on which I can activate my windowless activeX control ?
I will appreciate any clue !!

thanks,
Orit.

jra101
03-25-2003, 12:00 PM
You need to have a hardware accelerated rendering context to get the function pointers necessary to create a pbuffer.

To do this you need to create a invisible window, create a rendering context, create the pbuffer, then use the pbuffer as you would normally.