comparison libinterp/corefcn/gl-render.h @ 19747:1a6fa5a523e4

Correctly use GL2PS_POLYGON_OFFSET_FILL (bug #44111, bug #44125). * gl-render.h (set_polygon_offset): Correct prototype to use initial value of 0.0f. * gl2ps-renderer.h (set_polygon_offset): First call opengl_renderer::set_polygon_offset to set offset. Next, call gl2psEnable (GL2PS_POLYGON_OFFSET) to have gl2ps capture the offset value.
author Rik <rik@octave.org>
date Sat, 14 Feb 2015 09:32:57 -0800
parents 4197fc428c7d
children 19755f4fc851
comparison
equal deleted inserted replaced
19746:52cd69e79784 19747:1a6fa5a523e4
97 97
98 virtual void init_gl_context (bool enhanced, const Matrix& backgroundColor); 98 virtual void init_gl_context (bool enhanced, const Matrix& backgroundColor);
99 virtual void setup_opengl_transformation (const axes::properties& props); 99 virtual void setup_opengl_transformation (const axes::properties& props);
100 100
101 virtual void set_color (const Matrix& c); 101 virtual void set_color (const Matrix& c);
102 virtual void set_polygon_offset (bool on, float offset = 0.0); 102 virtual void set_polygon_offset (bool on, float offset = 0.0f);
103 virtual void set_linewidth (float w); 103 virtual void set_linewidth (float w);
104 virtual void set_linestyle (const std::string& s, bool stipple = false); 104 virtual void set_linestyle (const std::string& s, bool stipple = false);
105 virtual void set_clipbox (double x1, double x2, double y1, double y2, 105 virtual void set_clipbox (double x1, double x2, double y1, double y2,
106 double z1, double z2); 106 double z1, double z2);
107 virtual void set_clipping (bool on); 107 virtual void set_clipping (bool on);