using System.Windows.Forms;
using System.Drawing;
using Drawing3d;
namespace Sample
{
public partial class Form1 : Form
{
MyDevice Device = new MyDevice();
public Form1()
{
InitializeComponent();
Device.WinControl = this;
}
}
public class MyDevice:OpenGlDevice
{
Texture T = new Texture();
public override void OnPaint()
{
base.OnPaint();
drawBox(new xyz(-2, -2, 0), new xyz(2, 2, 2));
drawBox(new xyz(-2, 2, 0), new xyz(2, 2, 2));
drawBox(new xyz(2, 2, 0), new xyz(2, 2, 2));
drawBox(new xyz(2, -2, 0), new xyz(2, 2, 2));
}
}
}