예제 #1
0
        /// <summary>
        /// Set the pixel format on EGL platform.
        /// </summary>
        private void SetPixelFormatEgl()
        {
            NativeDeviceContext eglDeviceContext = (NativeDeviceContext)_DeviceContext;

            // Require the pixel formats
            DevicePixelFormatCollection pixelFormats = eglDeviceContext.PixelsFormats;

            eglDeviceContext.SetPixelFormat(pixelFormats[0]);
        }