Printing and Print Preview OpenGL in MFC - 项目摘要 |
摘要
| 管理 |
论坛 文档
| 软件包 |
|
|
|
项目描述: |
Wrapping OpenGL with MFC can take the advantages of both APIs: fast rendering and an elegant GUI. However, due to the fact that many printer drivers do not work with the SetPixelFormat() API function, it is not feasible to render an OpenGL scene to a printer directly. A widely used technique is to render an OpenGL scene to a DIB section, then copy it to a DC for printing or print preview. This article demonstrates this approach.
用MFC 封装OpenGL 可以用两种API:快速绘制和优秀的界面。然而,由于许多打印机驱动器不支持SetPixelFormat() API 函数,这样就不能直接将OpenGL 场景绘制到打印机上。一种广泛使用的技术是先将一个OpenGL   场景绘制到DIB 区,再将它复制到DC以供打印或预览。这个项目演示了这一方法。
来源: http://www.codeguru.com/opengl/printpreview.html |
类别: |
|
发布者:
cbd002
|
|
最新发布源码包 |
软件包 |
版本号 |
日期 |
本地下载 |
printpreview |
 1.0  |
2004-04-18 |
下载 |
|
|