Software Archive
Read-only legacy content
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
17060 Discussions

VF and OPENGL to save bmp

Intel_C_Intel
Employee
503 Views
My ultimate goal is to save the screen that I have created in VF using OpenGL to a bmp file. I have been trying to port the C++ code from the openGL superbible (pg. 260-263) to read and write a bmp from the screen. I have not had a lot of luck. I keep getting hung up in the differences in syntax and how they handle pointers. (my C++ experience is limited) I know I can save a bmp easily using QuickWIN, but I really want to stay away from that, because I will eventually be compiling this as a DLL.

Any suggestions out there? Has anyone converted the C++ code of the OpenGL superbible to Fortran? Does anyone have an openGL and VF routine to save a bmp?

The other approach I tryed was to call the C++ functions from my VF application, but I have not had a lot of mixed language luck either.

Thanks
0 Kudos
2 Replies
Jugoslav_Dujic
Valued Contributor II
503 Views
I think this is just what you need.
0 Kudos
Intel_C_Intel
Employee
503 Views
Thanks!!

That did the trick.
0 Kudos
Reply