Mercurial > octave
annotate libinterp/corefcn/gl2ps-renderer.h @ 21198:1adcdc518d9e
provide wrapper for glFinish in opengl_renderer class
* gl-render.h, gl-render.cc (opengl_renderer::finish): New function.
* gl2ps-renderer.h, gl2ps-renderer.cc, __osmesa_print__.cc: Use it
instead of calling glFinish directly.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 04 Feb 2016 18:12:00 -0500 |
parents | 9a5bb6996b16 |
children |
rev | line source |
---|---|
9798
2d6a5af744b6
printing for fltk backend using gl2ps
Shai Ayal <shaiay@users.sourceforge.net>
parents:
diff
changeset
|
1 /* |
2d6a5af744b6
printing for fltk backend using gl2ps
Shai Ayal <shaiay@users.sourceforge.net>
parents:
diff
changeset
|
2 |
19697
4197fc428c7d
maint: Update copyright notices for 2015.
John W. Eaton <jwe@octave.org>
parents:
19648
diff
changeset
|
3 Copyright (C) 2009-2015 Shai Ayal |
9798
2d6a5af744b6
printing for fltk backend using gl2ps
Shai Ayal <shaiay@users.sourceforge.net>
parents:
diff
changeset
|
4 |
2d6a5af744b6
printing for fltk backend using gl2ps
Shai Ayal <shaiay@users.sourceforge.net>
parents:
diff
changeset
|
5 This file is part of Octave. |
2d6a5af744b6
printing for fltk backend using gl2ps
Shai Ayal <shaiay@users.sourceforge.net>
parents:
diff
changeset
|
6 |
2d6a5af744b6
printing for fltk backend using gl2ps
Shai Ayal <shaiay@users.sourceforge.net>
parents:
diff
changeset
|
7 Octave is free software; you can redistribute it and/or modify it |
2d6a5af744b6
printing for fltk backend using gl2ps
Shai Ayal <shaiay@users.sourceforge.net>
parents:
diff
changeset
|
8 under the terms of the GNU General Public License as published by the |
2d6a5af744b6
printing for fltk backend using gl2ps
Shai Ayal <shaiay@users.sourceforge.net>
parents:
diff
changeset
|
9 Free Software Foundation; either version 3 of the License, or (at your |
2d6a5af744b6
printing for fltk backend using gl2ps
Shai Ayal <shaiay@users.sourceforge.net>
parents:
diff
changeset
|
10 option) any later version. |
2d6a5af744b6
printing for fltk backend using gl2ps
Shai Ayal <shaiay@users.sourceforge.net>
parents:
diff
changeset
|
11 |
2d6a5af744b6
printing for fltk backend using gl2ps
Shai Ayal <shaiay@users.sourceforge.net>
parents:
diff
changeset
|
12 Octave is distributed in the hope that it will be useful, but WITHOUT |
2d6a5af744b6
printing for fltk backend using gl2ps
Shai Ayal <shaiay@users.sourceforge.net>
parents:
diff
changeset
|
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
2d6a5af744b6
printing for fltk backend using gl2ps
Shai Ayal <shaiay@users.sourceforge.net>
parents:
diff
changeset
|
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
2d6a5af744b6
printing for fltk backend using gl2ps
Shai Ayal <shaiay@users.sourceforge.net>
parents:
diff
changeset
|
15 for more details. |
2d6a5af744b6
printing for fltk backend using gl2ps
Shai Ayal <shaiay@users.sourceforge.net>
parents:
diff
changeset
|
16 |
2d6a5af744b6
printing for fltk backend using gl2ps
Shai Ayal <shaiay@users.sourceforge.net>
parents:
diff
changeset
|
17 You should have received a copy of the GNU General Public License |
2d6a5af744b6
printing for fltk backend using gl2ps
Shai Ayal <shaiay@users.sourceforge.net>
parents:
diff
changeset
|
18 along with Octave; see the file COPYING. If not, see |
2d6a5af744b6
printing for fltk backend using gl2ps
Shai Ayal <shaiay@users.sourceforge.net>
parents:
diff
changeset
|
19 <http://www.gnu.org/licenses/>. |
2d6a5af744b6
printing for fltk backend using gl2ps
Shai Ayal <shaiay@users.sourceforge.net>
parents:
diff
changeset
|
20 |
2d6a5af744b6
printing for fltk backend using gl2ps
Shai Ayal <shaiay@users.sourceforge.net>
parents:
diff
changeset
|
21 */ |
2d6a5af744b6
printing for fltk backend using gl2ps
Shai Ayal <shaiay@users.sourceforge.net>
parents:
diff
changeset
|
22 |
20791
f7084eae3318
maint: Use Octave coding conventions for #if statements.
Rik <rik@octave.org>
parents:
20715
diff
changeset
|
23 #if ! defined (octave_gl2ps_renderer_h) |
17822
ebb3ef964372
maint: Use common #define syntax "octave_filename_h" in h_files.
Rik <rik@octave.org>
parents:
17797
diff
changeset
|
24 #define octave_gl2ps_renderer_h 1 |
9798
2d6a5af744b6
printing for fltk backend using gl2ps
Shai Ayal <shaiay@users.sourceforge.net>
parents:
diff
changeset
|
25 |
19648
16f21db320b5
Fix compilation error when building without gl2ps
Mike Miller <mtmiller@ieee.org>
parents:
19639
diff
changeset
|
26 #include "graphics.h" |
16f21db320b5
Fix compilation error when building without gl2ps
Mike Miller <mtmiller@ieee.org>
parents:
19639
diff
changeset
|
27 |
17797
06a850f83dd4
build: Remove embedded gl2ps. Require gl2ps as external dependency.
Rik <rik@octave.org>
parents:
17787
diff
changeset
|
28 #ifdef HAVE_GL2PS_H |
06a850f83dd4
build: Remove embedded gl2ps. Require gl2ps as external dependency.
Rik <rik@octave.org>
parents:
17787
diff
changeset
|
29 |
9798
2d6a5af744b6
printing for fltk backend using gl2ps
Shai Ayal <shaiay@users.sourceforge.net>
parents:
diff
changeset
|
30 #include "gl-render.h" |
17797
06a850f83dd4
build: Remove embedded gl2ps. Require gl2ps as external dependency.
Rik <rik@octave.org>
parents:
17787
diff
changeset
|
31 #include <gl2ps.h> |
9798
2d6a5af744b6
printing for fltk backend using gl2ps
Shai Ayal <shaiay@users.sourceforge.net>
parents:
diff
changeset
|
32 |
11586
12df7854fa7c
strip trailing whitespace from source files
John W. Eaton <jwe@octave.org>
parents:
11584
diff
changeset
|
33 class |
9798
2d6a5af744b6
printing for fltk backend using gl2ps
Shai Ayal <shaiay@users.sourceforge.net>
parents:
diff
changeset
|
34 OCTINTERP_API |
21084
83ce7b8fb91c
maint: rename glps_renderer class to gl2ps_renderer to match filename.
Rik <rik@octave.org>
parents:
21083
diff
changeset
|
35 gl2ps_renderer : public opengl_renderer |
9798
2d6a5af744b6
printing for fltk backend using gl2ps
Shai Ayal <shaiay@users.sourceforge.net>
parents:
diff
changeset
|
36 { |
2d6a5af744b6
printing for fltk backend using gl2ps
Shai Ayal <shaiay@users.sourceforge.net>
parents:
diff
changeset
|
37 public: |
21084
83ce7b8fb91c
maint: rename glps_renderer class to gl2ps_renderer to match filename.
Rik <rik@octave.org>
parents:
21083
diff
changeset
|
38 gl2ps_renderer (FILE *_fp, const std::string& _term) |
20715
5b7643257978
Remove trailing whitespace at end of lines.
Rik <rik@octave.org>
parents:
20624
diff
changeset
|
39 : opengl_renderer () , fp (_fp), term (_term), fontsize (), |
21083
8c9755d29d2a
Fix overflowing feedback buffers (bug #46417).
Pantxo Diribarne <pantxo.diribarne@gmail.com>
parents:
20945
diff
changeset
|
40 fontname (), buffer_overflow (false) { } |
9798
2d6a5af744b6
printing for fltk backend using gl2ps
Shai Ayal <shaiay@users.sourceforge.net>
parents:
diff
changeset
|
41 |
21084
83ce7b8fb91c
maint: rename glps_renderer class to gl2ps_renderer to match filename.
Rik <rik@octave.org>
parents:
21083
diff
changeset
|
42 ~gl2ps_renderer (void) { } |
9798
2d6a5af744b6
printing for fltk backend using gl2ps
Shai Ayal <shaiay@users.sourceforge.net>
parents:
diff
changeset
|
43 |
19890 | 44 void draw (const graphics_object& go, const std::string& print_cmd); |
9798
2d6a5af744b6
printing for fltk backend using gl2ps
Shai Ayal <shaiay@users.sourceforge.net>
parents:
diff
changeset
|
45 |
2d6a5af744b6
printing for fltk backend using gl2ps
Shai Ayal <shaiay@users.sourceforge.net>
parents:
diff
changeset
|
46 protected: |
2d6a5af744b6
printing for fltk backend using gl2ps
Shai Ayal <shaiay@users.sourceforge.net>
parents:
diff
changeset
|
47 |
12323
c8da31f12c1d
avoid using new to create temporary gl2ps_renderer object
John W. Eaton <jwe@octave.org>
parents:
11586
diff
changeset
|
48 Matrix render_text (const std::string& txt, |
c8da31f12c1d
avoid using new to create temporary gl2ps_renderer object
John W. Eaton <jwe@octave.org>
parents:
11586
diff
changeset
|
49 double x, double y, double z, |
c8da31f12c1d
avoid using new to create temporary gl2ps_renderer object
John W. Eaton <jwe@octave.org>
parents:
11586
diff
changeset
|
50 int halign, int valign, double rotation = 0.0); |
9798
2d6a5af744b6
printing for fltk backend using gl2ps
Shai Ayal <shaiay@users.sourceforge.net>
parents:
diff
changeset
|
51 |
12323
c8da31f12c1d
avoid using new to create temporary gl2ps_renderer object
John W. Eaton <jwe@octave.org>
parents:
11586
diff
changeset
|
52 void set_font (const base_properties& props); |
9798
2d6a5af744b6
printing for fltk backend using gl2ps
Shai Ayal <shaiay@users.sourceforge.net>
parents:
diff
changeset
|
53 |
20603
d30fc2c11455
Fix missing legend background in gl2ps outputs (bug #44765)
Pantxo Diribarne <pantxo.diribarne@gmail.com>
parents:
20129
diff
changeset
|
54 void draw_axes (const axes::properties& props) |
d30fc2c11455
Fix missing legend background in gl2ps outputs (bug #44765)
Pantxo Diribarne <pantxo.diribarne@gmail.com>
parents:
20129
diff
changeset
|
55 { |
20610
395140e53656
Fix regression in svg output and simplify viewport handling (bug #44765)
Pantxo Diribarne <pantxo.diribarne@gmail.com>
parents:
20603
diff
changeset
|
56 // Initialize a sorting tree (viewport) in gl2ps for each axes |
20603
d30fc2c11455
Fix missing legend background in gl2ps outputs (bug #44765)
Pantxo Diribarne <pantxo.diribarne@gmail.com>
parents:
20129
diff
changeset
|
57 GLint vp[4]; |
d30fc2c11455
Fix missing legend background in gl2ps outputs (bug #44765)
Pantxo Diribarne <pantxo.diribarne@gmail.com>
parents:
20129
diff
changeset
|
58 glGetIntegerv (GL_VIEWPORT, vp); |
d30fc2c11455
Fix missing legend background in gl2ps outputs (bug #44765)
Pantxo Diribarne <pantxo.diribarne@gmail.com>
parents:
20129
diff
changeset
|
59 gl2psBeginViewport (vp); |
d30fc2c11455
Fix missing legend background in gl2ps outputs (bug #44765)
Pantxo Diribarne <pantxo.diribarne@gmail.com>
parents:
20129
diff
changeset
|
60 |
21198
1adcdc518d9e
provide wrapper for glFinish in opengl_renderer class
John W. Eaton <jwe@octave.org>
parents:
21197
diff
changeset
|
61 // Draw and finish () or there may primitives missing in the |
20603
d30fc2c11455
Fix missing legend background in gl2ps outputs (bug #44765)
Pantxo Diribarne <pantxo.diribarne@gmail.com>
parents:
20129
diff
changeset
|
62 // gl2ps output. |
d30fc2c11455
Fix missing legend background in gl2ps outputs (bug #44765)
Pantxo Diribarne <pantxo.diribarne@gmail.com>
parents:
20129
diff
changeset
|
63 opengl_renderer::draw_axes (props); |
21198
1adcdc518d9e
provide wrapper for glFinish in opengl_renderer class
John W. Eaton <jwe@octave.org>
parents:
21197
diff
changeset
|
64 finish (); |
20610
395140e53656
Fix regression in svg output and simplify viewport handling (bug #44765)
Pantxo Diribarne <pantxo.diribarne@gmail.com>
parents:
20603
diff
changeset
|
65 |
395140e53656
Fix regression in svg output and simplify viewport handling (bug #44765)
Pantxo Diribarne <pantxo.diribarne@gmail.com>
parents:
20603
diff
changeset
|
66 // Finalize viewport |
395140e53656
Fix regression in svg output and simplify viewport handling (bug #44765)
Pantxo Diribarne <pantxo.diribarne@gmail.com>
parents:
20603
diff
changeset
|
67 GLint state = gl2psEndViewport (); |
395140e53656
Fix regression in svg output and simplify viewport handling (bug #44765)
Pantxo Diribarne <pantxo.diribarne@gmail.com>
parents:
20603
diff
changeset
|
68 if (state == GL2PS_NO_FEEDBACK) |
21084
83ce7b8fb91c
maint: rename glps_renderer class to gl2ps_renderer to match filename.
Rik <rik@octave.org>
parents:
21083
diff
changeset
|
69 warning ("gl2ps_renderer::draw_axes: empty feedback buffer and/or nothing else to print"); |
21083
8c9755d29d2a
Fix overflowing feedback buffers (bug #46417).
Pantxo Diribarne <pantxo.diribarne@gmail.com>
parents:
20945
diff
changeset
|
70 else if (state == GL2PS_ERROR) |
21084
83ce7b8fb91c
maint: rename glps_renderer class to gl2ps_renderer to match filename.
Rik <rik@octave.org>
parents:
21083
diff
changeset
|
71 error ("gl2ps_renderer::draw_axes: gl2psEndPage returned GL2PS_ERROR"); |
21174
a223cce1daa4
strip trailing space from source files we maintain
John W. Eaton <jwe@octave.org>
parents:
21084
diff
changeset
|
72 |
21083
8c9755d29d2a
Fix overflowing feedback buffers (bug #46417).
Pantxo Diribarne <pantxo.diribarne@gmail.com>
parents:
20945
diff
changeset
|
73 buffer_overflow |= (state == GL2PS_OVERFLOW); |
20603
d30fc2c11455
Fix missing legend background in gl2ps outputs (bug #44765)
Pantxo Diribarne <pantxo.diribarne@gmail.com>
parents:
20129
diff
changeset
|
74 } |
d30fc2c11455
Fix missing legend background in gl2ps outputs (bug #44765)
Pantxo Diribarne <pantxo.diribarne@gmail.com>
parents:
20129
diff
changeset
|
75 |
12323
c8da31f12c1d
avoid using new to create temporary gl2ps_renderer object
John W. Eaton <jwe@octave.org>
parents:
11586
diff
changeset
|
76 void draw_text (const text::properties& props); |
c8da31f12c1d
avoid using new to create temporary gl2ps_renderer object
John W. Eaton <jwe@octave.org>
parents:
11586
diff
changeset
|
77 void draw_pixels (GLsizei w, GLsizei h, GLenum format, |
c8da31f12c1d
avoid using new to create temporary gl2ps_renderer object
John W. Eaton <jwe@octave.org>
parents:
11586
diff
changeset
|
78 GLenum type, const GLvoid *data); |
9950
7dedfd70dd9f
image printing for fltk backend
Shai Ayal <shaiay@users.sourceforge.net>
parents:
9798
diff
changeset
|
79 |
14380
81183cd6eaae
Fix OpenGL printing of dashed lines (Bug #33765).
Rik <octave@nomad.inbox5.com>
parents:
14138
diff
changeset
|
80 void set_linestyle (const std::string& s, bool use_stipple = false) |
9798
2d6a5af744b6
printing for fltk backend using gl2ps
Shai Ayal <shaiay@users.sourceforge.net>
parents:
diff
changeset
|
81 { |
2d6a5af744b6
printing for fltk backend using gl2ps
Shai Ayal <shaiay@users.sourceforge.net>
parents:
diff
changeset
|
82 opengl_renderer::set_linestyle (s, use_stipple); |
14380
81183cd6eaae
Fix OpenGL printing of dashed lines (Bug #33765).
Rik <octave@nomad.inbox5.com>
parents:
14138
diff
changeset
|
83 |
81183cd6eaae
Fix OpenGL printing of dashed lines (Bug #33765).
Rik <octave@nomad.inbox5.com>
parents:
14138
diff
changeset
|
84 if (s == "-" && ! use_stipple) |
81183cd6eaae
Fix OpenGL printing of dashed lines (Bug #33765).
Rik <octave@nomad.inbox5.com>
parents:
14138
diff
changeset
|
85 gl2psDisable (GL2PS_LINE_STIPPLE); |
81183cd6eaae
Fix OpenGL printing of dashed lines (Bug #33765).
Rik <octave@nomad.inbox5.com>
parents:
14138
diff
changeset
|
86 else |
9798
2d6a5af744b6
printing for fltk backend using gl2ps
Shai Ayal <shaiay@users.sourceforge.net>
parents:
diff
changeset
|
87 gl2psEnable (GL2PS_LINE_STIPPLE); |
2d6a5af744b6
printing for fltk backend using gl2ps
Shai Ayal <shaiay@users.sourceforge.net>
parents:
diff
changeset
|
88 } |
2d6a5af744b6
printing for fltk backend using gl2ps
Shai Ayal <shaiay@users.sourceforge.net>
parents:
diff
changeset
|
89 |
19713
1a6fa5a523e4
Correctly use GL2PS_POLYGON_OFFSET_FILL (bug #44111, bug #44125).
Rik <rik@octave.org>
parents:
19697
diff
changeset
|
90 void set_polygon_offset (bool on, float offset = 0.0f) |
9798
2d6a5af744b6
printing for fltk backend using gl2ps
Shai Ayal <shaiay@users.sourceforge.net>
parents:
diff
changeset
|
91 { |
2d6a5af744b6
printing for fltk backend using gl2ps
Shai Ayal <shaiay@users.sourceforge.net>
parents:
diff
changeset
|
92 if (on) |
19713
1a6fa5a523e4
Correctly use GL2PS_POLYGON_OFFSET_FILL (bug #44111, bug #44125).
Rik <rik@octave.org>
parents:
19697
diff
changeset
|
93 { |
1a6fa5a523e4
Correctly use GL2PS_POLYGON_OFFSET_FILL (bug #44111, bug #44125).
Rik <rik@octave.org>
parents:
19697
diff
changeset
|
94 opengl_renderer::set_polygon_offset (on, offset); |
1a6fa5a523e4
Correctly use GL2PS_POLYGON_OFFSET_FILL (bug #44111, bug #44125).
Rik <rik@octave.org>
parents:
19697
diff
changeset
|
95 gl2psEnable (GL2PS_POLYGON_OFFSET_FILL); |
1a6fa5a523e4
Correctly use GL2PS_POLYGON_OFFSET_FILL (bug #44111, bug #44125).
Rik <rik@octave.org>
parents:
19697
diff
changeset
|
96 } |
9798
2d6a5af744b6
printing for fltk backend using gl2ps
Shai Ayal <shaiay@users.sourceforge.net>
parents:
diff
changeset
|
97 else |
19713
1a6fa5a523e4
Correctly use GL2PS_POLYGON_OFFSET_FILL (bug #44111, bug #44125).
Rik <rik@octave.org>
parents:
19697
diff
changeset
|
98 { |
1a6fa5a523e4
Correctly use GL2PS_POLYGON_OFFSET_FILL (bug #44111, bug #44125).
Rik <rik@octave.org>
parents:
19697
diff
changeset
|
99 gl2psDisable (GL2PS_POLYGON_OFFSET_FILL); |
1a6fa5a523e4
Correctly use GL2PS_POLYGON_OFFSET_FILL (bug #44111, bug #44125).
Rik <rik@octave.org>
parents:
19697
diff
changeset
|
100 opengl_renderer::set_polygon_offset (on, offset); |
1a6fa5a523e4
Correctly use GL2PS_POLYGON_OFFSET_FILL (bug #44111, bug #44125).
Rik <rik@octave.org>
parents:
19697
diff
changeset
|
101 } |
19861
19755f4fc851
maint: Cleanup C++ code to follow Octave coding conventions.
Rik <rik@octave.org>
parents:
19713
diff
changeset
|
102 } |
9798
2d6a5af744b6
printing for fltk backend using gl2ps
Shai Ayal <shaiay@users.sourceforge.net>
parents:
diff
changeset
|
103 |
12323
c8da31f12c1d
avoid using new to create temporary gl2ps_renderer object
John W. Eaton <jwe@octave.org>
parents:
11586
diff
changeset
|
104 void set_linewidth (float w) |
9798
2d6a5af744b6
printing for fltk backend using gl2ps
Shai Ayal <shaiay@users.sourceforge.net>
parents:
diff
changeset
|
105 { |
2d6a5af744b6
printing for fltk backend using gl2ps
Shai Ayal <shaiay@users.sourceforge.net>
parents:
diff
changeset
|
106 gl2psLineWidth (w); |
2d6a5af744b6
printing for fltk backend using gl2ps
Shai Ayal <shaiay@users.sourceforge.net>
parents:
diff
changeset
|
107 } |
2d6a5af744b6
printing for fltk backend using gl2ps
Shai Ayal <shaiay@users.sourceforge.net>
parents:
diff
changeset
|
108 |
2d6a5af744b6
printing for fltk backend using gl2ps
Shai Ayal <shaiay@users.sourceforge.net>
parents:
diff
changeset
|
109 private: |
20715
5b7643257978
Remove trailing whitespace at end of lines.
Rik <rik@octave.org>
parents:
20624
diff
changeset
|
110 // Use xform to compute the coordinates of the ft_string list |
20624
4e47e10d5279
Add basic support for multiline and tex markup in printed figures (bugs #31468, 42320, 45301)
Pantxo Diribarne <pantxo.diribarne@gmail.com>
parents:
20610
diff
changeset
|
111 // that have been parsed by freetype |
20715
5b7643257978
Remove trailing whitespace at end of lines.
Rik <rik@octave.org>
parents:
20624
diff
changeset
|
112 void fix_strlist_position (double x, double y, double z, |
5b7643257978
Remove trailing whitespace at end of lines.
Rik <rik@octave.org>
parents:
20624
diff
changeset
|
113 Matrix box, double rotation, |
20624
4e47e10d5279
Add basic support for multiline and tex markup in printed figures (bugs #31468, 42320, 45301)
Pantxo Diribarne <pantxo.diribarne@gmail.com>
parents:
20610
diff
changeset
|
114 std::list<ft_render::ft_string>& lst); |
4e47e10d5279
Add basic support for multiline and tex markup in printed figures (bugs #31468, 42320, 45301)
Pantxo Diribarne <pantxo.diribarne@gmail.com>
parents:
20610
diff
changeset
|
115 |
4e47e10d5279
Add basic support for multiline and tex markup in printed figures (bugs #31468, 42320, 45301)
Pantxo Diribarne <pantxo.diribarne@gmail.com>
parents:
20610
diff
changeset
|
116 private: |
11455
2be9e22796d2
improvements in text-extent calculation
Konstantinos Poulios <logari81@googlemail.com>
parents:
10955
diff
changeset
|
117 int alignment_to_mode (int ha, int va) const; |
14418
933101fd5cbb
Use file descriptor instead of a FILE pointer for OpenGL printing.
John W. Eaton <jwe@octave.org>
parents:
14380
diff
changeset
|
118 FILE *fp; |
10857
2224236440c0
add more terminal types to gl2ps-renderer
Shai Ayal <shaiay@users.sourceforge.net>
parents:
10313
diff
changeset
|
119 caseless_str term; |
9798
2d6a5af744b6
printing for fltk backend using gl2ps
Shai Ayal <shaiay@users.sourceforge.net>
parents:
diff
changeset
|
120 double fontsize; |
2d6a5af744b6
printing for fltk backend using gl2ps
Shai Ayal <shaiay@users.sourceforge.net>
parents:
diff
changeset
|
121 std::string fontname; |
21083
8c9755d29d2a
Fix overflowing feedback buffers (bug #46417).
Pantxo Diribarne <pantxo.diribarne@gmail.com>
parents:
20945
diff
changeset
|
122 bool buffer_overflow; |
9798
2d6a5af744b6
printing for fltk backend using gl2ps
Shai Ayal <shaiay@users.sourceforge.net>
parents:
diff
changeset
|
123 }; |
2d6a5af744b6
printing for fltk backend using gl2ps
Shai Ayal <shaiay@users.sourceforge.net>
parents:
diff
changeset
|
124 |
20945
9d9270e2f98f
eliminate comments after preprocessor conditionals
John W. Eaton <jwe@octave.org>
parents:
20791
diff
changeset
|
125 #endif |
17797
06a850f83dd4
build: Remove embedded gl2ps. Require gl2ps as external dependency.
Rik <rik@octave.org>
parents:
17787
diff
changeset
|
126 |
19639
61cc00ebac60
move opengl printing code from __init_fltk__.cc to gl2ps-renderer.cc
John W. Eaton <jwe@octave.org>
parents:
17822
diff
changeset
|
127 extern OCTINTERP_API void |
21197
9a5bb6996b16
write to pipe or file in gl2ps_print
John W. Eaton <jwe@octave.org>
parents:
21174
diff
changeset
|
128 gl2ps_print (const graphics_object& fig, const std::string& stream, |
19639
61cc00ebac60
move opengl printing code from __init_fltk__.cc to gl2ps-renderer.cc
John W. Eaton <jwe@octave.org>
parents:
17822
diff
changeset
|
129 const std::string& term); |
61cc00ebac60
move opengl printing code from __init_fltk__.cc to gl2ps-renderer.cc
John W. Eaton <jwe@octave.org>
parents:
17822
diff
changeset
|
130 |
9798
2d6a5af744b6
printing for fltk backend using gl2ps
Shai Ayal <shaiay@users.sourceforge.net>
parents:
diff
changeset
|
131 #endif |