23 #if !defined (octave_gl2ps_renderer_h)
24 #define octave_gl2ps_renderer_h 1
38 glps_renderer (FILE *_fp,
const std::string& _term)
39 :
opengl_renderer () , fp (_fp), term (_term), fontsize (), fontname () { }
41 ~glps_renderer (
void) { }
47 Matrix render_text (
const std::string& txt,
48 double x,
double y,
double z,
49 int halign,
int valign,
double rotation = 0.0);
54 void draw_pixels (GLsizei
w, GLsizei h, GLenum format,
55 GLenum
type,
const GLvoid *data);
57 void set_linestyle (
const std::string& s,
bool use_stipple =
false)
59 opengl_renderer::set_linestyle (s, use_stipple);
61 if (s ==
"-" && ! use_stipple)
62 gl2psDisable (GL2PS_LINE_STIPPLE);
64 gl2psEnable (GL2PS_LINE_STIPPLE);
67 void set_polygon_offset (
bool on,
float offset = 0.0
f)
71 opengl_renderer::set_polygon_offset (on, offset);
72 gl2psEnable (GL2PS_POLYGON_OFFSET_FILL);
76 gl2psDisable (GL2PS_POLYGON_OFFSET_FILL);
77 opengl_renderer::set_polygon_offset (on, offset);
81 void set_linewidth (
float w)
87 int alignment_to_mode (
int ha,
int va)
const;
94 #endif // HAVE_GL2PS_H
98 const std::string& term);
F77_RET_T const double const double * f
std::complex< double > w(std::complex< double > z, double relerr=0)
OCTINTERP_API void gl2ps_print(const graphics_object &fig, const std::string &cmd, const std::string &term)
F77_RET_T const double * x