public void draw(DrawRequest r)
        {
            ADLDrawRequest nativeR = r.toNative();

            nativeR.rendererId   = _rendererId;
            nativeR.windowHandle = r.hdc;
            NativeAPI.adl_draw(_platformHandle, ref nativeR);
        }
 /// <summary>
 /// 
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void draw(object sender, PaintEventArgs e)
 {
     IntPtr dc = e.Graphics.GetHdc();
     DrawRequest drawR = new DrawRequest();
     drawR.hdc = dc;
     drawR.left = 0;
     drawR.right = Width;
     drawR.top = 0;
     drawR.bottom = Height;
     manualRenderer.draw(drawR);
     e.Graphics.ReleaseHdc(dc);
 }
        /// <summary>
        ///
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void draw(object sender, PaintEventArgs e)
        {
            IntPtr      dc    = e.Graphics.GetHdc();
            DrawRequest drawR = new DrawRequest();

            drawR.hdc    = dc;
            drawR.left   = 0;
            drawR.right  = Width;
            drawR.top    = 0;
            drawR.bottom = Height;
            manualRenderer.draw(drawR);
            e.Graphics.ReleaseHdc(dc);
        }
 public void draw(object sender, PaintEventArgs e)
 {
     IntPtr dc = e.Graphics.GetHdc();
     DrawRequest drawR = new DrawRequest();
     drawR.hdc = dc;
     drawR.left = 0;
     drawR.right = renderingPanel.Width;
     drawR.top = 0;
     drawR.bottom = renderingPanel.Height;
     renderer.draw(drawR);
     e.Graphics.ReleaseHdc(dc);
 }
 public void draw(DrawRequest r)
 {
     ADLDrawRequest nativeR = r.toNative();
     nativeR.rendererId = _rendererId;
     nativeR.windowHandle = r.hdc;
     NativeAPI.adl_draw(_platformHandle, ref nativeR);
 }