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

digraph inheritance39e24ae63e { bgcolor=transparent; rankdir=BT; size="8.0, 12.0"; "DTOOL_SUPER_BASE" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style=""]; "MeshDrawer2D" [URL="acron.core.MeshDrawer2D.html#acron.core.MeshDrawer2D",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "TypedObject" -> "MeshDrawer2D" [arrowsize=0.75,style=""]; "TypedObject" [URL="acron.core.TypedObject.html#acron.core.TypedObject",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "DTOOL_SUPER_BASE" -> "TypedObject" [arrowsize=0.75,style=""]; }
MeshDrawer2D.__init__()

Creates the MeshDrawer2D low level system.

MeshDrawer2D.begin()

Opens up the geom for drawing, don’t forget to call MeshDrawer2D::end()

MeshDrawer2D.end()

Finish the drawing and clearing off the remaining vertexes.

MeshDrawer2D.get_budget()

Gets the total triangle budget of the drawer.

static MeshDrawer2D.get_class_type()
MeshDrawer2D.get_root()

Returns the root NodePath.

MeshDrawer2D.quad_raw()

Draws a 2D rectangle. Ignores the clipping rectangle.

MeshDrawer2D.rectangle()

Draws a 2D rectangle which can be clipped.

MeshDrawer2D.rectangle_border()

Draws a 2d rectangle, with borders and corders, taken from the surrounding texture

MeshDrawer2D.rectangle_border_tiled()

Draws a 2d rectangle, with borders and corders, taken from the surrounding texture

MeshDrawer2D.rectangle_raw()
MeshDrawer2D.rectangle_tiled()

Draws a tiled rectangle, size of tiles is in us and vs

MeshDrawer2D.set_budget()

Sets the total triangle budget of the drawer.

MeshDrawer2D.set_clip()

Sets the clipping rectangle.