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 TWall = new Texture();
public override void OnPaint()
{
base.OnPaint();
Emission = Color.Gray; // macht die Sache heller
texture = TWall;
drawBox(new xyz(-4, -4, 0), new xyz(8, 8, 1));
}
protected override void OnCreated()
{
base.OnCreated();
TWall.LoadFromFile("Bricks05.bmp");
TWall.WorldHeight = 2;
TWall.WorldWidth = 2;
}
}
}