17 INLINE RenderModeAttrib::
18 RenderModeAttrib(RenderModeAttrib::Mode mode, PN_stdfloat thickness,
19 bool perspective,
const LColor &wireframe_color) :
21 _thickness(thickness),
22 _perspective(perspective),
23 _wireframe_color(wireframe_color)
63 return _wireframe_color;
73 if (_mode == M_point) {
74 geom_rendering |= Geom::GR_point | Geom::GR_render_mode_point;
76 }
else if (_mode == M_wireframe) {
77 geom_rendering |= Geom::GR_render_mode_wireframe;
80 if ((geom_rendering & Geom::GR_point) != 0) {
82 geom_rendering |= (Geom::GR_point_perspective | Geom::GR_point_uniform_size);
83 }
else if (_thickness != 1.0f) {
84 geom_rendering |= Geom::GR_point_uniform_size;
88 return geom_rendering;
get_perspective
Returns the perspective flag.
get_thickness
Returns the line width or point thickness.
int get_geom_rendering(int geom_rendering) const
Returns the union of the Geom::GeomRendering bits that will be required once this RenderModeAttrib is...
get_wireframe_color
Returns the color that is used in M_filled_wireframe mode to distinguish the wireframe from the rest ...
get_mode
Returns the render mode.