예제 #1
0
        //-///////////////////////////////////////////////////////////////////////
        //-///////////////////////////////////////////////////////////////////////

        public void BeginDraw(Graphics graphics, GraphicsControl graphicsControl)
        {
            _graphics        = graphics;
            _graphicsControl = graphicsControl;

            set_colour(new Colour(0f, 0f, 0f, 1f));
        }
예제 #2
0
        //-///////////////////////////////////////////////////////////////////////
        //-///////////////////////////////////////////////////////////////////////

        /// <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);
            }
        }
예제 #3
0
        //-///////////////////////////////////////////////////////////////////////
        //-///////////////////////////////////////////////////////////////////////

        public void EndDraw()
        {
            _graphics        = null;
            _graphicsControl = null;
        }