Guidance
指路人
g.yi.org
Guidance Forums / wxWidgets (wxWindows) in C++ / Print openGL

Register 
注册
Search 搜索
首页 
Home Home
Software
Upload

  
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
Message1. Print openGL
#5150
Posted by: 2004-09-24 05:54:39
Hello bodies, is there any way to print ap OpenGL context to the printer hardware with wxWindows classes.
Thanks

Oli...
Message2. Re: Print openGL
#5207
Posted by: 2004-10-08 04:17:06
1. create a bitmap located in the memory
2. read pixels form the color buffer using glReadPixels() to the address your bitmap's pixels are (using the pointer to the first pixel)
3. BitBlt() or StretchBlt() it in the printer's device context

The picture may be vertically flipped.
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
掌柜推荐
 
 
 
 
 
 
 
 
 
 
 
 
© Fri 2024-3-29  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0