Solved

OWL/OpenGL cut/paste

Posted on 1997-03-07
1
274 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
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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…

744 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now