SDL help needed :((

Dear SDL users,
I’ve been trying to write a program in Visual C++ 6 that exports the
contents of an OpenGL window to a BMP file. I looked at some posts on
several forums but none of the source codes worked :((
I’ve been trying to get it working for weeks without siccess… there
must be a way to solve this.
Any help would be highly appreciated!!!
Enclosed I’m sending you the source code of the program, hope it’s not
too big to send to a mailing list. (250Kb)
I might do something wrong…
You’re my very last hope :(( Please help.
Thanks a lot !!!

Best regards,

Balazs
michnay at hotmail.com
michnay at freemail.hu

Bocsi Nemigaz wrote:

I’ve been trying to write a program in Visual C++ 6 that exports the
contents of an OpenGL window to a BMP file. I looked at some posts on
several forums but none of the source codes worked :((

Either you didn’t attach the file, or, more likely, attached files are
removed from posts. My approach to the problem would be something like this.

  1. Draw-everything into your opengl-framebuffer.

  2. Read into system memory (glReadBuffer(…); glReadPixels(…):wink:

  3. Write to disk using your favorite image loading/saving library (eg.
    DevIL - openil.sourceforge.net)

It’s a bit difficult being more specific without knowing what problems
you ran into.

Regards,
\Mikkel Gjoel

Sending huge attachments unannounced is considered, well, rude at the very
least. Please don’t do it. (Fortunately it seems to have been removed before
going out to the list.)

Thanks,
JPOn Monday 16 February 2004 07:11 am, Bocsi Nemigaz wrote:

Enclosed I’m sending you the source code of the program, hope it’s not
too big to send to a mailing list. (250Kb)