[gl2ps] OpenGL -> Vector without code modification

Bill Baxter wbaxter at gmail.com
Sat Jan 12 07:48:12 CET 2008


On Jan 12, 2008 3:23 PM, Shai Ayal <shaiay at gmail.com> wrote:
> I think the main hurdle to the adoption of GLIntercept is that it
> seems windows specific (correct me if I'm wrong here).
> Also it seems the main forte of GLIntercept is intercepting OpenGL
> calls for applications you don't have the source code for. gl2ps is a
> library for incorporation into an application.
>
> So it seems that the net result of combining gl2ps & GLIntercept would
> be to be able to get ps/pdf vector-screenshots (as opposed to the
> normal bitmap-screenshots) of OpenGL applications running on windows.

Yes, I think you get the idea.
I'm actually mostly interested in doing gl2ps on my own apps for which
I have source code.
Using GLIntercept seems like a good way to avoid this kind of ugly:
     glPointSize(1.);
     gl2psPointSize(1.);
where you have to duplicate your GL calls to let glps know about the
current state.

On Linux there is BuGLe http://www.opengl.org/sdk/tools/BuGLe/,
I haven't looked into it though.  I don't think it supports plugins
like GLIntercept.

--bb