Mercurial > octave
comparison src/gl2ps-renderer.cc @ 14389:6b2448555bbd
Fix Z-order stacking of axis background for FLTK printing (bug #35559)
* __fltk_print__.m: Pass a 2D option to gl2ps renderer.
* gl2ps-renderer.cc (draw): Switch sort order for passing objects
to renderer based on 2D option.
author | Rik <octave@nomad.inbox5.com> |
---|---|
date | Tue, 21 Feb 2012 14:04:05 -0800 |
parents | 81ee6b12adbc |
children | 933101fd5cbb |
comparison
equal
deleted
inserted
replaced
14388:b5b49f400f9b | 14389:6b2448555bbd |
---|---|
70 } | 70 } |
71 | 71 |
72 GLint gl2ps_text = 0; | 72 GLint gl2ps_text = 0; |
73 if (term.find ("notxt") != std::string::npos) gl2ps_text = GL2PS_NO_TEXT; | 73 if (term.find ("notxt") != std::string::npos) gl2ps_text = GL2PS_NO_TEXT; |
74 | 74 |
75 // Default sort order optimizes for 3D plots | |
76 GLint gl2ps_sort = GL2PS_BSP_SORT; | |
77 if (term.find ("is2D") != std::string::npos) gl2ps_sort = GL2PS_NO_SORT; | |
78 | |
75 while (state == GL2PS_OVERFLOW) | 79 while (state == GL2PS_OVERFLOW) |
76 { | 80 { |
77 buffsize += 1024*1024; | 81 buffsize += 1024*1024; |
78 gl2psBeginPage ("glps_renderer figure", "Octave", viewport, | 82 gl2psBeginPage ("glps_renderer figure", "Octave", viewport, |
79 gl2ps_term, GL2PS_BSP_SORT, | 83 gl2ps_term, gl2ps_sort, |
80 (GL2PS_SILENT | GL2PS_SIMPLE_LINE_OFFSET | 84 (GL2PS_SILENT | GL2PS_SIMPLE_LINE_OFFSET |
81 | GL2PS_NO_BLENDING | GL2PS_OCCLUSION_CULL | 85 | GL2PS_NO_BLENDING | GL2PS_OCCLUSION_CULL |
82 | GL2PS_BEST_ROOT | gl2ps_text | 86 | GL2PS_BEST_ROOT | gl2ps_text |
83 | GL2PS_NO_PS3_SHADING), | 87 | GL2PS_NO_PS3_SHADING), |
84 GL_RGBA, 0, NULL, 0, 0, 0, | 88 GL_RGBA, 0, NULL, 0, 0, 0, |