Beispiel #1
0
        public DummyWorld(Controls controls)
        {
            mName = null;
            mLevel = null;

            Texture2D gridAlphaMap = new Texture2D(GraphicsManager.Device, HeightMapMesh.NUM_SIDE_VERTICES * HeightMapMesh.NUM_SIDE_TEXELS_PER_QUAD, HeightMapMesh.NUM_SIDE_VERTICES * HeightMapMesh.NUM_SIDE_TEXELS_PER_QUAD);
            HeightMapMesh gridMesh = new HeightMapMesh(new float[HeightMapMesh.NUM_SIDE_VERTICES, HeightMapMesh.NUM_SIDE_VERTICES], gridAlphaMap, new string[0], null, null);
            AssetLibrary.AddGrid("BLOCK_GRID", gridMesh);

            mGridRenderable = new GridRenderable("BLOCK_GRID");
        }
        public ObjectModificationGizmo(Controls controls, FPSCamera camera)
        {
            mControls = controls;
            mCamera = camera;

            mXPositionArm.ObjectID = mXPickingID;
            mYPositionArm.ObjectID = mYPickingID;
            mZPositionArm.ObjectID = mZPickingID;

            mXScaleArm.ObjectID = mXPickingID;
            mYScaleArm.ObjectID = mYPickingID;
            mZScaleArm.ObjectID = mZPickingID;

            mYawArm.ObjectID   = mXPickingID;
            mPitchArm.ObjectID = mYPickingID;
            mRollArm.ObjectID  = mZPickingID;

            IsDragging = false;
        }
Beispiel #3
0
 public Entity(GraphicsDevice graphicsDevice, Controls controls, FPSCamera camera)
 {
     mGraphicsDevice = graphicsDevice;
     mControls = controls;
     mCamera = camera;
 }