public void DefaultSettings()
        {
            RenderSettings settings  = new RenderSettings();
            RenderSettings settings2 = new RenderSettings();

            Assert.IsTrue(settings.Equals(settings2));
        }
Пример #2
0
        public void DifferentAlphaTest()
        {
            RenderSettings settings  = new RenderSettings();
            RenderSettings settings2 = new RenderSettings();

            settings2.alphaTestSettings = new AlphaTestSettings(true, OpenTK.Graphics.OpenGL.AlphaFunction.Gequal, 0.5f);
            Assert.IsFalse(settings.Equals(settings2));
        }
Пример #3
0
        public void DifferentDepthTest()
        {
            RenderSettings settings  = new RenderSettings();
            RenderSettings settings2 = new RenderSettings();

            settings2.depthTestSettings = new DepthTestSettings(false, true, OpenTK.Graphics.OpenGL.DepthFunction.Lequal);

            Assert.IsFalse(settings.Equals(settings2));
        }
Пример #4
0
        public void DifferentAlphaBlend()
        {
            RenderSettings settings  = new RenderSettings();
            RenderSettings settings2 = new RenderSettings();

            settings2.alphaBlendSettings.enabled = !settings.alphaBlendSettings.enabled;

            Assert.IsFalse(settings.Equals(settings2));
        }
Пример #5
0
        public void DifferentFaceCull()
        {
            RenderSettings settings  = new RenderSettings();
            RenderSettings settings2 = new RenderSettings();

            settings2.faceCullingSettings = new FaceCullingSettings(false, OpenTK.Graphics.OpenGL.CullFaceMode.Back);

            Assert.IsFalse(settings.Equals(settings2));
        }
        public void SameObject()
        {
            RenderSettings settings = new RenderSettings();

            Assert.IsTrue(settings.Equals(settings));
        }