Solved

OWL/OpenGL cut/paste

Posted on 1997-03-07
1
280 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: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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

Suggested Solutions

Title # Comments Views Activity
Getting IP address 8 123
How to programmatically differentiate between C and Java 10 221
Arduino EDI - Programming language 3 126
C++ mouse_event mouse look 7 131
Written by John Humphreys C++ Threading and the POSIX Library This article will cover the basic information that you need to know in order to make use of the POSIX threading library available for C and C++ on UNIX and most Linux systems.   [s…
This article will show you some of the more useful Standard Template Library (STL) algorithms through the use of working examples.  You will learn about how these algorithms fit into the STL architecture, how they work with STL containers, and why t…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

734 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