MeshDrawer2D
from panda3d.core import MeshDrawer2D
- class MeshDrawer2D
Bases:
TypedObject
This class allows the drawing of 2D objects - mainly based on quads and rectangles. It allows clipping and several high level UI theme functions.
Inheritance diagram
- __init__(*args, **kwargs)
- begin()
C++ Interface: begin(const MeshDrawer2D self)
- /**
Opens up the geom for drawing, don’t forget to call MeshDrawer2D::end()
*/
- end()
C++ Interface: end(const MeshDrawer2D self)
- /**
Finish the drawing and clearing off the remaining vertexes.
*/
- getBudget()
C++ Interface: get_budget(const MeshDrawer2D self)
- /**
Gets the total triangle budget of the drawer.
*/
- getClassType()
C++ Interface: get_class_type()
- get_budget()
C++ Interface: get_budget(const MeshDrawer2D self)
- /**
Gets the total triangle budget of the drawer.
*/
- get_class_type()
C++ Interface: get_class_type()
- quadRaw()
C++ Interface: quad_raw(const MeshDrawer2D self, const LVector3f v1, const LVector4f c1, const LVector2f uv1, const LVector3f v2, const LVector4f c2, const LVector2f uv2, const LVector3f v3, const LVector4f c3, const LVector2f uv3, const LVector3f v4, const LVector4f c4, const LVector2f uv4)
- /**
Draws a 2D rectangle. Ignores the clipping rectangle.
*/
- quad_raw()
C++ Interface: quad_raw(const MeshDrawer2D self, const LVector3f v1, const LVector4f c1, const LVector2f uv1, const LVector3f v2, const LVector4f c2, const LVector2f uv2, const LVector3f v3, const LVector4f c3, const LVector2f uv3, const LVector3f v4, const LVector4f c4, const LVector2f uv4)
- /**
Draws a 2D rectangle. Ignores the clipping rectangle.
*/
- rectangle()
C++ Interface: rectangle(const MeshDrawer2D self, float x, float y, float w, float h, float u, float v, float us, float vs, const LVector4f color)
- /**
Draws a 2D rectangle which can be clipped.
*/
- rectangleBorder()
C++ Interface: rectangle_border(const MeshDrawer2D self, float x, float y, float w, float h, float r, float t, float l, float b, float tr, float tt, float tl, float tb, float u, float v, float us, float vs, const LVector4f color)
- /**
Draws a 2d rectangle, with borders and corders, taken from the surrounding
texture
*/
- rectangleBorderTiled()
C++ Interface: rectangle_border_tiled(const MeshDrawer2D self, float x, float y, float w, float h, float r, float t, float l, float b, float tr, float tt, float tl, float tb, float u, float v, float us, float vs, const LVector4f color)
- /**
Draws a 2d rectangle, with borders and corders, taken from the surrounding
texture
*/
- rectangleRaw()
C++ Interface: rectangle_raw(const MeshDrawer2D self, float x, float y, float w, float h, float u, float v, float us, float vs, const LVector4f color)
- rectangleTiled()
C++ Interface: rectangle_tiled(const MeshDrawer2D self, float x, float y, float w, float h, float u, float v, float us, float vs, const LVector4f color)
- /**
Draws a tiled rectangle, size of tiles is in us and vs
*/
- rectangle_border()
C++ Interface: rectangle_border(const MeshDrawer2D self, float x, float y, float w, float h, float r, float t, float l, float b, float tr, float tt, float tl, float tb, float u, float v, float us, float vs, const LVector4f color)
- /**
Draws a 2d rectangle, with borders and corders, taken from the surrounding
texture
*/
- rectangle_border_tiled()
C++ Interface: rectangle_border_tiled(const MeshDrawer2D self, float x, float y, float w, float h, float r, float t, float l, float b, float tr, float tt, float tl, float tb, float u, float v, float us, float vs, const LVector4f color)
- /**
Draws a 2d rectangle, with borders and corders, taken from the surrounding
texture
*/
- rectangle_raw()
C++ Interface: rectangle_raw(const MeshDrawer2D self, float x, float y, float w, float h, float u, float v, float us, float vs, const LVector4f color)
- rectangle_tiled()
C++ Interface: rectangle_tiled(const MeshDrawer2D self, float x, float y, float w, float h, float u, float v, float us, float vs, const LVector4f color)
- /**
Draws a tiled rectangle, size of tiles is in us and vs
*/
- setBudget()
C++ Interface: set_budget(const MeshDrawer2D self, int budget)
- /**
Sets the total triangle budget of the drawer.
*/
- setClip()
C++ Interface: set_clip(const MeshDrawer2D self, float x, float y, float w, float h)
- /**
Sets the clipping rectangle.
*/