public static SetPixelFormat ( |
||
deviceContext | /// Specifies the device context whose pixel format the function attempts to set. /// | |
pixelFormat | int | /// Index that identifies the pixel format to set. The various pixel formats supported by a device /// context are identified by one-based indexes. /// |
pixelFormatDescriptor | PIXELFORMATDESCRIPTOR |
/// Pointer to a |
return | bool |
public static bool SetPixelFormat(IntPtr deviceContext, int pixelFormat, ref PIXELFORMATDESCRIPTOR pixelFormatDescriptor)
{
Kernel.LoadLibrary("opengl32.dll");
return _SetPixelFormat(deviceContext, pixelFormat, ref pixelFormatDescriptor);
}
#endregion BOOL SetPixelFormat(HDC hdc, int iPixelFormat, PIXELFORMATDESCRIPTOR* ppfd)