Esempio n. 1
0
        public override void render(float elapsedTime)
        {
            Device d3dDevice = GuiController.Instance.D3dDevice;

            Vector3 start     = (Vector3)GuiController.Instance.Modifiers["start"];
            Vector3 end       = (Vector3)GuiController.Instance.Modifiers["end"];
            float   thickness = (float)GuiController.Instance.Modifiers["thickness"];
            Color   color     = (Color)GuiController.Instance.Modifiers["color"];

            //Cargar valores de la línea
            line.PStart    = start;
            line.PEnd      = end;
            line.Thickness = thickness;
            line.Color     = color;

            //Actualizar valores para hacerlos efectivos
            line.updateValues();

            //Render
            line.render();
        }
Esempio n. 2
0
        public override void Render()
        {
            PreRender();

            var start     = (Vector3)Modifiers["start"];
            var end       = (Vector3)Modifiers["end"];
            var thickness = (float)Modifiers["thickness"];
            var color     = (Color)Modifiers["color"];

            //Cargar valores de la línea
            line.PStart    = start;
            line.PEnd      = end;
            line.Thickness = thickness;
            line.Color     = color;

            //Actualizar valores para hacerlos efectivos
            line.updateValues();

            //Render
            line.render();

            PostRender();
        }