Microsoft KB Archive/272221

{|
 * width="100%"|

GLDib Demonstrates Rendering to DIBSections By Using OpenGL

 * }

Q272221

-

The information in this article applies to:


 * Microsoft Win32 Software Development Kit (SDK)

-

SUMMARY
The GLDib sample, which is contained in the self-extracting executable, Gldib1.exe, demonstrates how to render an OpenGL scene into a DIBSection (a device-independent bitmap). The sample also demonstrates how to display and print the DIBSection, thus effectively rendering OpenGL to the printer.

The sample creates a DIBSection that is in the same format as the screen, which avoids the need for system-translation of the DIB at display time. This can yield relatively fast animation for unaccelerated systems.

The frames-per-second (FPS) animation rate is displayed in the title bar of the window. You can reset this calculation (after resizing the window for instance) by pressing the &quot;R&quot; (or &quot;r&quot;) key on your keyboard.

MORE INFORMATION
The following file is available for download from the Microsoft Download Center:

"Gldib1.exe" Release Date:

For additional information about how to download Microsoft Support files, click the article number below to view the article in the Microsoft Knowledge Base:

"Q119591 How to Obtain Microsoft Support Files from Online Services" Microsoft used the most current virus detection software available on the date of posting to scan this file for viruses. Once posted, the file is housed on secure servers that prevent any unauthorized changes to the file.