public CameraController(RenderingLibrary.Camera camera, SystemManagers managers, Cursor cursor, GraphicsDeviceControl control, Ruler topRuler, Ruler leftRuler) { this.TopRuler = topRuler; this.LeftRuler = leftRuler; Cursor = cursor; Camera = camera; Managers = managers; cameraPanningLogic = new CameraPanningLogic(control, managers, cursor, null); }
public CameraPanningLogic(GraphicsDeviceControl graphicsControl, SystemManagers managers, Cursor cursor, Keyboard keyboard) { mManagers = managers; mKeyboard = keyboard; mCursor = cursor; mCursor.Initialize(graphicsControl); mCamera = managers.Renderer.Camera; mControl = graphicsControl; graphicsControl.XnaUpdate += new Action(Activity); }
public Ruler(GraphicsDeviceControl control, SystemManagers managers, Cursor cursor) { try { mControl = control; mManagers = managers; mCursor = cursor; CreateLayer(); CreateVisualRepresentation(); // Create the text after the Layer CreateGuideText(); RulerSide = Wireframe.RulerSide.Top; } catch (Exception e) { throw e; } }
public Ruler(GraphicsDeviceControl control, SystemManagers managers, Cursor cursor ) { try { mControl = control; mManagers = managers; mCursor = cursor; CreateLayer(); CreateVisualRepresentation(); // Create the text after the Layer CreateGuideText(); RulerSide = Wireframe.RulerSide.Top; } catch(Exception e) { throw e; } }
public void Initialize(GraphicsDeviceControl graphicsDeviceControl, PreviewControls previewControls) { mPreviewControls = previewControls; mPreviewControls.OnionSkinVisibleChange += new EventHandler(HandleOnionSkinChange); mPreviewControls.SpriteAlignmentChange += new EventHandler(HandleSpriteAlignmentChange); mControl = graphicsDeviceControl; mControl.XnaDraw += new Action(HandleXnaDraw); mControl.MouseWheel += new System.Windows.Forms.MouseEventHandler(HandleMouseWheel); HandleXnaInitialize(); }