﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="CanvasMock.cs" company="Helix Toolkit">
//   Copyright (c) 2014 Helix Toolkit contributors
// </copyright>
// --------------------------------------------------------------------------------------------------------------------

using System;
using SharpDX;
using SharpDX.Direct3D11;

namespace HelixToolkit.Wpf.SharpDX.Tests.Controls
{
    class CanvasMock : IRenderHost
    {
        public CanvasMock()
        {
            Device = EffectsManager.Device;
            RenderTechnique = Techniques.RenderPhong;
        }

        public Device Device { get; private set; }
        Color4 IRenderHost.ClearColor { get; }
        Device IRenderHost.Device { get; }
        public Color4 ClearColor { get; private set; }
        public bool IsShadowMapEnabled { get; private set; }
        public bool IsMSAAEnabled { get; private set; }
        public IRenderer Renderable { get; private set; }
        public void SetDefaultRenderTargets()
        {
            throw new NotImplementedException();
        }

        public void SetDefaultColorTargets(DepthStencilView dsv)
        {
            throw new NotImplementedException();
        }

        public RenderTechnique RenderTechnique { get; private set; }
        public double ActualHeight { get; private set; }
        public double ActualWidth { get; private set; }
    }
}
﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="CanvasMock.cs" company="Helix Toolkit">
//   Copyright (c) 2014 Helix Toolkit contributors
// </copyright>
// --------------------------------------------------------------------------------------------------------------------

using System;
using SharpDX;
using SharpDX.Direct3D11;

namespace HelixToolkit.Wpf.SharpDX.Tests.Controls
{
    class CanvasMock : IRenderHost
    {
        public CanvasMock()
        {
            Device = EffectsManager.Device;
            RenderTechnique = Techniques.RenderPhong;
        }

        public Device Device { get; private set; }
        public Color4 ClearColor { get; private set; }
        public bool IsShadowMapEnabled { get; private set; }
        public bool IsMSAAEnabled { get; private set; }
        public IRenderer Renderable { get; private set; }
        public RenderTechnique RenderTechnique { get; private set; }
        public double ActualHeight { get; private set; }
        public double ActualWidth { get; private set; }

        public void SetDefaultRenderTargets()
        {
            throw new NotImplementedException();
        }

        public void SetDefaultColorTargets(DepthStencilView dsv)
        {
            throw new NotImplementedException();
        }
    }
}
Fix and re-enable the canvas mock.
Fix and re-enable the canvas mock.

This got busted when we updated SharpDX to 2.6.3.
