Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
gl2ps.h
✓ #include <gl2ps.h>
Capture OpenGL rendering to an EPS file
#include <GL/gl.h>
#include "gl2ps.h"
int main() {
GLint buffsize = 0, state = GL2PS_OVERFLOW;
FILE *fp = fopen("output.ps", "wb");
while (state == GL2PS_OVERFLOW) {
buffsize += 1024*1024;
gl2psBeginPage("test", "gl2ps", NULL, GL2PS_EPS, GL2PS_BSP_SIMPLE,
GL2PS_SILENT | GL2PS_SIMPLE_LINE_OFFSET | GL2PS_NO_BLENDING,
GL_RGBA, 0, NULL, 0, 0, 0, buffsize, fp, "output.eps");
// OpenGL drawing commands here
gl2psEndPage();
}
fclose(fp);
return 0;
}
Audit
Dependencies
No dependency data recorded yet.
Resources
No resource links recorded.