Microsoft KB Archive/272221

From BetaArchive Wiki

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 "R" (or "r") 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.




REFERENCES

Most of the following references can be found on the Microsoft Developer Network (MSDN) Library CD-ROMs. Some of these references are published by publishers independent of Microsoft; we make no warranty, implied or otherwise, regarding the reliability of these resources.


  • For general information about OpenGL, please see the following resource:
  • For more information about DIBS, see the following references:
  • For additional information about DIBs and DIBSections in general, click the article numbers below to view the articles in the Microsoft Knowledge Base:

    Q230492 HOWTO: Retrieving an Optimal DIB Format for a Device

    Q186221 SAMPLE: DibSectn.exe Uses DIBSections in Win32

Additional query words: Gldib1 PFD_DRAW_TO_BITMAP

Keywords : kbfile kbGDI kbSDKWin32 kbDSupport kbGrpDSGDI
Issue type :
Technology : kbWin32SDKSearch kbAudDeveloper kbSDKSearch kbWin32sSearch


Last Reviewed: February 3, 2001
© 2001 Microsoft Corporation. All rights reserved. Terms of Use.