示例#1
0
        public Scene()
        {
            Mesa m = new Mesa(p: new Vector3(0.0f, 0.0f, -65.0f), anchoX: 22, altoY: 15, profZ: 10);

            m.setColor(new Color4(0.5f, 0.35f, 0.05f, 1.0f));

            Silla s = new Silla(p: new Vector3(0.0f, 0.0f, -70.0f), anchoX: 6, altoY: 15, profZ: 4);

            s.setColor(new Color4(1f, 0f, 0f, 1.0f));

            Robot r = new Robot(p: new Vector3(0.0f, 12.5f, -65.0f), anchoX: 5, altoY: 10, profZ: 3);

            r.setColor(new Color4(1f, 0f, 1f, 1.0f));

            objects = new List <IFigura> {
                m, s, r
            };
        }
示例#2
0
        public Scene(Vector3 centro)
        {
            this.centro = centro;

            Mesa m = new Mesa(p: new Vector3(centro.X, centro.Y, centro.Z), anchoX: 22, altoY: 15, profZ: 10);

            m.setColor(new Color4(1f, 0.7f, 0.0f, 1.0f));

            Silla s = new Silla(p: new Vector3(centro.X, centro.Y, centro.Z - 5f), anchoX: 6, altoY: 15, profZ: 4);

            s.setColor(new Color4(1f, 0f, 0f, 1.0f));

            Robot r = new Robot(p: new Vector3(centro.X, centro.Y + 12.5f, centro.Z), anchoX: 5, altoY: 10, profZ: 3);

            r.setColor(new Color4(0f, 0f, 1f, 1.0f));

            objects = new List <IFigura> {
                m, s, r
            };
        }