//-/////////////////////////////////////////////////////////////////////// //-/////////////////////////////////////////////////////////////////////// public void BeginDraw(Graphics graphics, GraphicsControl graphicsControl) { _graphics = graphics; _graphicsControl = graphicsControl; set_colour(new Colour(0f, 0f, 0f, 1f)); }
//-/////////////////////////////////////////////////////////////////////// //-/////////////////////////////////////////////////////////////////////// /// <summary> /// call tick() from python code. It stores the current graphics /// transform and adds the handle to the list of handles to be /// active this frame. /// </summary> public void tick() { Graphics g = this.Attr.Module.Graphics; GraphicsControl gc = this.Attr.Module.GraphicsControl; if (g != null && gc != null) { _transform = g.Transform; gc.AddHandle(this); } }
//-/////////////////////////////////////////////////////////////////////// //-/////////////////////////////////////////////////////////////////////// public void EndDraw() { _graphics = null; _graphicsControl = null; }