using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using Drawing3d;
using Drawing3d.Math;
using Drawing3d.Devices;
namespace HelloWorld
{
public partial class Form1 : Form
{
Texture TWall = new Texture();
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);
Device.Navigate = NavigateKind.ZoomRotateTrans;
TWall.LoadFromFile("Bricks05.bmp");
// TWall.Mirrored = true;
TWall.WorldHeight = 2;
TWall.WorldWidth = 2;
}
void Device_OnPaint(object sender, EventArgs e)
{
Device.Emisson = Color.Gray; // macht die Sache heller
Device.texture = TWall;
Tools.drawBoxAt(Device,new xyz(-4,-4,0), new xyz(8, 8, 1));
}
}
}