Solved

OWL/OpenGL cut/paste

Posted on 1997-03-07
1
284 Views
Last Modified: 2008-02-07
Using OpenGL, in an OWL environment, how can one paint OpenGL images to the clipboard to allow cutting and pasting?  At the same time, I need to be able to paint to the screen as normal.
Images painted to the clipboard would then be pasted into Powerpoint or Word as bitmaps or some form of picture.

Thanks,
Brian
0
Comment
Question by:brigling
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 11

Accepted Solution

by:
mikeblas earned 100 total points
ID: 1161987
Windows doesn't offer a OpenGL-specific clipboard format, and OpenGL doesn't provide for image copying directly.  You'll need to grab a bitmap of the window that you're using to display the object and then paste that to the clipboard using CF_DIB or CF_BITMAP.

If you have control over both the program that's providing the image and the programs that will consume it from the clipboard, you could register your own custom format and hook up your own re-rendering mechanism.

.B ekiM
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
Many modern programming languages support the concept of a property -- a class member that combines characteristics of both a data member and a method.  These are sometimes called "smart fields" because you can add logic that is applied automaticall…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

624 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question