MeshDrawer2D¶
from acron.core import MeshDrawer2D
- class MeshDrawer2D¶
Bases:
Bases:
TypedObjectThis 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=""]; }- __init__()¶
Creates the
MeshDrawer2Dlow level system.
- begin()¶
Opens up the geom for drawing, don’t forget to call
MeshDrawer2D.end()
- end()¶
Finish the drawing and clearing off the remaining vertexes.
- get_budget()¶
Gets the total triangle budget of the drawer.
- static get_class_type()¶
- quad_raw()¶
Draws a 2D rectangle. Ignores the clipping rectangle.
- rectangle()¶
Draws a 2D rectangle which can be clipped.
- rectangle_border()¶
Draws a 2d rectangle, with borders and corders, taken from the surrounding texture
- rectangle_border_tiled()¶
Draws a 2d rectangle, with borders and corders, taken from the surrounding texture
- rectangle_raw()¶
- rectangle_tiled()¶
Draws a tiled rectangle, size of tiles is in us and vs
- set_budget()¶
Sets the total triangle budget of the drawer.
- set_clip()¶
Sets the clipping rectangle.