Click or drag to resize
SoWinGLWidgetSetPixelFormat Method

Sets the current pixel format.

Namespace: OIV.Inventor.Win
Assembly: OIV.Inventor.Win (in OIV.Inventor.Win.dll) Version: 2024.2.2.0 (10.16.2.0)
Syntax
public void SetPixelFormat(
	int format
)

Parameters

format
Type: SystemInt32
Remarks

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.

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 OIV.Inventor.Win.SoWinGLWidget.SetPixelFormat(System.Int32).

See Also