RenderModeAttrib
from panda3d.core import RenderModeAttrib
- class RenderModeAttrib
Bases:
RenderAttrib
Specifies how polygons are to be drawn.
Inheritance diagram
- MFilled = 1
- MFilledFlat = 4
- MFilledWireframe = 5
- MPoint = 3
- MUnchanged = 0
- MWireframe = 2
- M_filled = 1
- M_filled_flat = 4
- M_filled_wireframe = 5
- M_point = 3
- M_unchanged = 0
- M_wireframe = 2
- __init__(*args, **kwargs)
- class_slot = 21
- getClassSlot()
C++ Interface: get_class_slot()
- getClassType()
C++ Interface: get_class_type()
- getGeomRendering()
C++ Interface: get_geom_rendering(RenderModeAttrib self, int geom_rendering)
- /**
Returns the union of the Geom::GeomRendering bits that will be required
once this RenderModeAttrib is applied to a geom which includes the
indicated geom_rendering bits.
*/
- getPerspective()
C++ Interface: get_perspective(RenderModeAttrib self)
- /**
Returns the perspective flag. When this is true, the point thickness
represented by get_thickness() is actually a width in 3-d units, and the
points should scale according to perspective. When it is false, the
default, the point thickness is actually a width in pixels, and points are
a uniform size regardless of distance from the camera.
*/
- getThickness()
C++ Interface: get_thickness(RenderModeAttrib self)
- /**
Returns the line width or point thickness. This is only relevant when
rendering points or lines, such as when the mode is M_wireframe or M_point
(or when rendering actual points or lines primitives in M_polygon mode).
*/
- getWireframeColor()
C++ Interface: get_wireframe_color(RenderModeAttrib self)
- /**
Returns the color that is used in M_filled_wireframe mode to distinguish
the wireframe from the rest of the geometry.
*/
- get_class_slot()
C++ Interface: get_class_slot()
- get_class_type()
C++ Interface: get_class_type()
- get_geom_rendering()
C++ Interface: get_geom_rendering(RenderModeAttrib self, int geom_rendering)
- /**
Returns the union of the Geom::GeomRendering bits that will be required
once this RenderModeAttrib is applied to a geom which includes the
indicated geom_rendering bits.
*/
- get_perspective()
C++ Interface: get_perspective(RenderModeAttrib self)
- /**
Returns the perspective flag. When this is true, the point thickness
represented by get_thickness() is actually a width in 3-d units, and the
points should scale according to perspective. When it is false, the
default, the point thickness is actually a width in pixels, and points are
a uniform size regardless of distance from the camera.
*/
- get_thickness()
C++ Interface: get_thickness(RenderModeAttrib self)
- /**
Returns the line width or point thickness. This is only relevant when
rendering points or lines, such as when the mode is M_wireframe or M_point
(or when rendering actual points or lines primitives in M_polygon mode).
*/
- get_wireframe_color()
C++ Interface: get_wireframe_color(RenderModeAttrib self)
- /**
Returns the color that is used in M_filled_wireframe mode to distinguish
the wireframe from the rest of the geometry.
*/
- make()
C++ Interface: make(int mode, float thickness, bool perspective, const LVecBase4f wireframe_color)
- /**
Constructs a new RenderModeAttrib object that specifies whether to draw
polygons in the normal, filled mode, or wireframe mode, or in some other
yet-to-be-defined mode.
The thickness parameter specifies the thickness to be used for wireframe
lines, as well as for ordinary linestrip lines; it also specifies the
diameter of points. (Thick lines are presently only supported in OpenGL;
but thick points are supported on either platform.)
If perspective is true, the point thickness represented is actually a width
in 3-d units, and the points should scale according to perspective. When
it is false, the point thickness is actually a width in pixels, and points
are a uniform screen size regardless of distance from the camera.
In M_filled_wireframe mode, you should also specify the wireframe_color,
indicating the flat color to assign to the overlayed wireframe.
*/
- makeDefault()
C++ Interface: make_default()
- /**
Returns a RenderAttrib that corresponds to whatever the standard default
properties for render attributes of this type ought to be.
*/
- make_default()
C++ Interface: make_default()
- /**
Returns a RenderAttrib that corresponds to whatever the standard default
properties for render attributes of this type ought to be.
*/
- mode
- perspective
- thickness
- wireframe_color