public WorldScene(View view) : base(view) { selectionModel = new Model { XMesh = view.content.Get<SlimDX.Direct3D9.Mesh>("unitplane.x"), Texture = view.content.Get<Texture>("selectioncircle1.png"), World = Matrix.Scaling(2, 2, 0) * Matrix.Translation(0, 0, 0.1f), HasAlpha = true }; billboardEffect = view.content.Get<Effect>("billboard.fx"); Root = new WorldEntity { Scene = this }; Renderer = new Renderer(Device); }
public NavMeshEditor(View view, WorldScene scene, ScreenToWorld stw, ClientCommon.Mesh plane) { this.view = view; this.scene = scene; this.screenToWorld = stw; vertexModel = new Model { Mesh = plane, IsBillboard = true, Texture = view.content.Get<Texture>("blink.tga"), World = Matrix.Scaling(1, 1, 0), Effect = view.content.Get<Effect>("billboard.fx") }; CreateNextFace(); }
/// <summary> /// Do not use, used internally by view automatically /// </summary> public static void RegisterView(View view) { viewes.Add(view); }
public Scene(View view) { this.View = view; }
public WalkaroundCamera(View view, ZFunc zfunc) : base(view) { this.zfunc = zfunc; view.KeyDown += new System.Windows.Forms.KeyEventHandler(view_KeyDown); view.Frame += new View.FrameEventHandler(view_Frame); view.KeyUp += new System.Windows.Forms.KeyEventHandler(view_KeyUp); view.MouseMove += new System.Windows.Forms.MouseEventHandler(view_MouseMove); view.MouseDown += new System.Windows.Forms.MouseEventHandler(view_MouseDown); view.MouseUp += new System.Windows.Forms.MouseEventHandler(view_MouseUp); view.MouseWheel += new System.Windows.Forms.MouseEventHandler(view_MouseWheel); UpdateRot(); }
public LookatCamera(LookatCamera cpy) : base(cpy) { this.Position = cpy.Position; this.Lookat = cpy.Lookat; this.Up = cpy.Up; this.view = cpy.view; }
public LookatCamera(View view) { this.view = view; }