Registry / other / gl2ps
library1.4.2vcpkgunverified

OpenGL to PostScript Printing Library

vcpkg install gl2ps
INSTALL
IMPORT
SIG · GL2PS
G
gl2ps
othercppv1.4.2
harness data pending
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; }
Debug
Known issues
gotchaGL2PS requires an active OpenGL context and proper OpenGL state to capture correctly.
fix
Ensure you have a valid OpenGL context (e.g., via GLUT, GLFW, or Qt) before calling gl2psBeginPage.
affects: *
Upgrade
Version history
1.4.2latest on vcpkg
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Meta
1
Resources

No resource links recorded.

gl2ps — pip install gl2ps · libregistry