Demonstration of OpenGL Material Property and Printing |
Q136266
The information in this article applies to:
- Microsoft Win32 Application Programming Interface (API), used with:
- Microsoft Windows NT Server versions 3.51, 4.0
- Microsoft Windows NT Workstation versions 3.51, 4.0
- Microsoft Windows 98
- Microsoft Windows 95
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 Download Center:
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.
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 kbOSWinNT351 kbOSWinNT400 kbSDKWin32 kbOSWin95 kbOSWin98
Issue type : kbinfo
Technology : kbAudDeveloper kbWin32sSearch kbWin32API
Last Reviewed: December 16, 2000 |