Ejemplo n.º 1
0
        public void DrawObject()
        {
            Scene scene;
            Frame camera;

            InitializeScene(out scene, out camera);
            Engine.BackColor = new Color4(Color.LightBlue.ToArgb());

            var box = new BoxMesh();

            // scene.Renderables.Add(box);

            TestManager.Cleaner = () =>
            {
                camera.Remove();
            };
        }
Ejemplo n.º 2
0
        public void DrawObjectWithoutLines()
        {
            Engine.BackColor = new Color4(Color.LightBlue.ToArgb());


            var scene = new Scene("DefaultScene");

            Engine.Scene = scene;
            scene.AmbientLight.SkyColor    = new Color3(1.0f);
            scene.AmbientLight.GroundColor = new Color3(0.5f);

            Frame camera = CreateCamera(scene);

            var box = new BoxMesh();

            scene.Create("BoxMesh", box, Matrix.Scale(5, 5, 5));
            //scene.Renderables.Add(box);

            TestManager.Cleaner = () =>
            {
                camera.Remove();
            };
        }