wmf/emf and opengl

Hi there.

Can anyone give me a hint or some links concerning how to export data from openGL into wmf or emf format ?

We are planning to use GL4Java and we want to be able to export frames with rendered data into wmf/emf files.

Thanks a lot.

You can read about the emf format at msdn.microsoft.com

I think wmf is ancient technology.

Basically, you have to reinterpret GL commands into GDI commands, and recored them into the emf. Not everything can be exported I imagine, such as texturing.

Ugh. That sounds GRIM. Alternatively, you can glReadPixels - into a bitmap and write that in your emf-type manner (I’m guessing the format has a meta-type for binary data).