Demonstration of OpenGL Material Property and Printing

ID: Q136266


The information in this article applies to:


SUMMARY

The GLBMP sample illustrates how to define the material properties of the objects in the scene: the ambient, diffuse, and specular colors; the shininess; and the color of any emitted lights. This sample also demonstrates how to print an OpenGL image by writing the OpenGL image into a DIB section and printing the DIB section. The current version of Microsoft's implementation of OpenGL in Windows NT does not provide support for printing. To work around this current limitation, draw the OpenGL image into a memory bitmap, and then print the bitmap.


MORE INFORMATION

The following file is available for download from the Microsoft Software Library:

~ GLBMP.EXE
For more information about downloading files from the Microsoft Software Library, please see the following article in the Microsoft Knowledge Base:
Q119591 How to Obtain Microsoft Support Files from Online Services
The GLBMP sample uses some of the new Windows 95 controls. So it won't run in Windows NT version 3.5 but will run in Windows NT version 3.51 and Windows 95 when OpenGL for Windows 95 is available.

Additional query words: glbmp.exe opengl kbgraphic kbprint kbfile


Keywords          : kbfile kbgraphic kbsample kbNTOS351 kbNTOS400 kbSDKWin32 kbWinOS95 kbWinOS98 
Version           : winnt:3.51,4.0
Platform          : winnt 
Issue type        : kbinfo 

Last Reviewed: June 15, 1999