SoWinGLWidgetSetPixelFormat Method |
Sets the current pixel format.
Namespace: OIV.Inventor.Win
This method allows an application to set a pixel format that has extended attributes that can't be specified in a PFD struct. The specified format must support OpenGL and drawing to a window. There are not separate methods for normal and overlay windows because the overlay is not a separate window on Win32 computers.
You can also use environment variable OIV_FORCE_PIXEL_FORMAT to request a pixel format.
Note: OIV_FORCE_PIXEL_FORMAT can also be used to set special convenience values (-1, -2, etc.) used for troubleshooting. However, these values are not actually valid pixel formats and are not supported by setPixelFormat.