Graphics 版 (精华区)
发信人: killest (victor), 信区: Graphics
标 题: [转载] VC 4.0中使用OpenGL(6)
发信站: 紫 丁 香 (Wed Apr 22 10:28:50 1998), 站内信件
【 以下文字转载自 Programming 讨论区 】
【 原文由 xiaojun 所发表 】
[Image]Note: Windows does not support drawing into a printer device context
using the OpenGL Library. If you wish to print an image created with
OpenGL, one possible workaround is to draw into a memory device context
that is compatible with the display device and then transfer the resulting
bitmap to the printer device.
---------------------------------------------------------------------------
OpenGL under Windows recognizes two types of pixel data modes: RGBA formats
and color index-based modes. When the RGBA mode is selected, pixel colors
are specified in the form of RGB color values. When color index mode is
selected, pixel colors are selected from the system palette using an index
value. These two modes become relevant on palette-based 256-color devices
(many VGA-compatible display cards). When your application uses the RGBA
mode on such a device, it must manage its own palette, and respond to
Windows palette notification messages.
There are specific requirements that must be met by a window that is to be
used for OpenGL operations. Specifically, such windows cannot be created
using a window class that has the CS_PARENTDC style set. The window itself
must have the WS_CLIPCHILDREN and the WS_CLIPSIBLINGS styles in order to be
compatible with OpenGL.
--
※ 来源:.紫 丁 香 bbs.hit.edu.cn.[FROM: hs6.hit.edu.cn]
--
※ 转载:.紫 丁 香 bbs.hit.edu.cn.[FROM: victor.hit.edu.c]
Powered by KBS BBS 2.0 (http://dev.kcn.cn)
页面执行时间:5.479毫秒