using System.ComponentModel;
using System.Data;
using System.Windows.Forms;
using Drawing3d;
using Drawing3d.Math;
using Drawing3d.Devices;
namespace Drawing3DApplication1
{
    public partial class Form1 : Form
    {
        // Create a OpenGlEngine Device
        public OpenGlDevice Device = new OpenGlDevice();
        public Form1()
        {
            InitializeComponent();
        }
        private void Form1_Load(object sender, EventArgs e)
        {
            // Set the current form as control of the device
            Device.WinControl = this;
            // Adds a paintingmethod to drawing into the form
            Device.OnPaint += new EventHandler(Device_OnPaint);
        }
        void Device_OnPaint(object sender, EventArgs e)
        {
            Device.drawSphere(new xyz(0, 0, 0), 3);
            // Fill in the drawing3d paintmethods for example "Device.drawLine(new xyz(0,0,0),new xyz(5,1,3));"
            // or a method from Tools like Tools.drawBox(Device,new xyz(4,3,1));
        }
    }
}