22 INLINE RenderModeAttrib::
23 RenderModeAttrib(RenderModeAttrib::Mode mode, PN_stdfloat thickness,
24 bool perspective,
const LColor &wireframe_color) :
26 _thickness(thickness),
27 _perspective(perspective),
28 _wireframe_color(wireframe_color)
81 return _wireframe_color;
94 if (_mode == M_point) {
95 geom_rendering |= Geom::GR_point;
97 if ((geom_rendering & Geom::GR_point) != 0) {
99 geom_rendering |= (Geom::GR_point_perspective | Geom::GR_point_uniform_size);
100 }
else if (_thickness != 1.0f) {
101 geom_rendering |= Geom::GR_point_uniform_size;
105 return geom_rendering;
int get_geom_rendering(int geom_rendering) const
Returns the union of the Geom::GeomRendering bits that will be required once this RenderModeAttrib is...
bool get_perspective() const
Returns the perspective flag.
const LColor & get_wireframe_color() const
Returns the color that is used in M_filled_wireframe mode to distinguish the wireframe from the rest ...
Mode get_mode() const
Returns the render mode.
This is the base class for all three-component vectors and points.
PN_stdfloat get_thickness() const
Returns the line width or point thickness.