comparison src/graphics/opengl/gl-render.h @ 7829:8ca8e97e8c0a

Add rendering interface for surface object (no implementation yet). * * * Add surface properties. * * * Add cdata -> RGB color conversion function. Use it in surface objects. * * * Add normals automatic computation to surface objects. * * * Make sure the correct "get" method is called. * * * Extend scaler interface to accept NDArray. * * * Surface rendering (1st part). * * * Fix wrong indexing. * * * Fix bug in xget_ancestor argument declaration. * * * Initialize OpenGL context correctly. Fix bug in surface rendering. * * * Set material color when rendering surface facets. * * * Add rendering of surface mesh and markers.
author Michael Goffioul <michael.goffioul@gmail.com>
date Thu, 14 Feb 2008 12:17:44 +0100
parents 13871b7de124
children 8ff92634982d
comparison
equal deleted inserted replaced
7828:4739b6a1925c 7829:8ca8e97e8c0a
56 56
57 protected: 57 protected:
58 virtual void draw (const figure::properties& props); 58 virtual void draw (const figure::properties& props);
59 virtual void draw (const axes::properties& props); 59 virtual void draw (const axes::properties& props);
60 virtual void draw (const line::properties& props); 60 virtual void draw (const line::properties& props);
61 virtual void draw (const surface::properties& props);
61 62
62 virtual void set_color (const Matrix& c); 63 virtual void set_color (const Matrix& c);
63 virtual void set_polygon_offset (bool on, double offset = 0.0); 64 virtual void set_polygon_offset (bool on, double offset = 0.0);
64 virtual void set_linewidth (float w); 65 virtual void set_linewidth (float w);
65 virtual void set_linestyle (const std::string& s, bool stipple = false); 66 virtual void set_linestyle (const std::string& s, bool stipple = false);