Ejemplo n.º 1
0
        public void FrameBufferGetColorTexture()
        {
            tlog.Debug(tag, $"FrameBufferGetColorTexture START");

            var testingTarget = new FrameBuffer(10, 20, 3);

            Assert.IsNotNull(testingTarget, "Can't create success object FrameBuffer.");
            Assert.IsInstanceOf <FrameBuffer>(testingTarget, "Should return FrameBuffer instance.");

            using (Texture texture = new Texture(TextureType.TEXTURE_2D, PixelFormat.BGR8888, 100, 80))
            {
                testingTarget.AttachColorTexture(texture);

                try
                {
                    testingTarget.GetColorTexture();
                }
                catch (Exception e)
                {
                    tlog.Debug(tag, e.Message.ToString());
                    Assert.Fail("Caught Exception : Failed!");
                }
            }

            testingTarget.Dispose();
            tlog.Debug(tag, $"FrameBufferGetColorTexture END (OK)");
        }