using System; using System.Collections.Generic; using System.Text; using Microsoft.DirectX.Direct3D; using System.Drawing; namespace SalsaModel { public class AxesScene : IScene { Device DXDevice; BasicDrawing Helper = new BasicDrawing(); Message3D OriginMsg; Message3D XMsg; Message3D YMsg; Message3D ZMsg; public void Setup(Microsoft.DirectX.Direct3D.Device dev) { DXDevice = dev; Helper.Setup(dev); OriginMsg = new Message3D(dev, "Origin"); XMsg = new Message3D(dev, "X = 100.0"); YMsg = new Message3D(dev, "Y = 100.0"); ZMsg = new Message3D(dev, "Z = 100.0"); } public void Draw() { Helper.Ball(new Location(0, 0, 0), Color.Red); Helper.Ball(new Location(100, 0, 0), Color.Red); Helper.Ball(new Location(0, 100, 0), Color.Red); Helper.Ball(new Location(0, 0, 100), Color.Red); //Helper.Status("Hello, world"); OriginMsg.Draw(DXDevice, new Location(0, 0, 0), 20); XMsg.Draw(DXDevice, new Location(100, 0, 0), 20); YMsg.Draw(DXDevice, new Location(0, 100, 0), 20); ZMsg.Draw(DXDevice, new Location(0, 0, 100), 20); Helper.Line(new Location(0, 0, 0), new Location(100, 0, 0), Color.Yellow); Helper.Line(new Location(0, 0, 0), new Location(0, 100, 0), Color.Yellow); Helper.Line(new Location(0, 0, 0), new Location(0, 0, 100), Color.Yellow); } } }