23 #if !defined (octave_gl2ps_renderer_h)
24 #define octave_gl2ps_renderer_h 1
36 glps_renderer (FILE *_fp,
const std::string& _term)
37 :
opengl_renderer () , fp (_fp), term (_term), fontsize (), fontname () { }
39 ~glps_renderer (
void) { }
45 Matrix render_text (
const std::string& txt,
46 double x,
double y,
double z,
47 int halign,
int valign,
double rotation = 0.0);
52 void draw_pixels (GLsizei
w, GLsizei h, GLenum format,
53 GLenum
type,
const GLvoid *data);
55 void set_linestyle (
const std::string& s,
bool use_stipple =
false)
59 if (s ==
"-" && ! use_stipple)
60 gl2psDisable (GL2PS_LINE_STIPPLE);
62 gl2psEnable (GL2PS_LINE_STIPPLE);
65 void set_polygon_offset (
bool on,
double offset = 0.0)
69 gl2psEnable (GL2PS_POLYGON_OFFSET_FILL);
71 gl2psDisable (GL2PS_POLYGON_OFFSET_FILL);
74 void set_linewidth (
float w)
80 int alignment_to_mode (
int ha,
int va)
const;
87 #endif // HAVE_GL2PS_H