SAMPLE: Demonstration of OpenGL Material Property and PrintingLast reviewed: August 5, 1996Article ID: Q136266 |
The information in this article applies to:
SUMMARYThe 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. Download GLBMP.EXE a self-extracting file, from the Microsoft Software Library (MSL) on the following services:
MORE INFORMATIONThe 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 reference words: 4.00 glbmp.exe opengl
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |