Ejemplo n.º 1
0
        private void trans_shy_Click(object sender, EventArgs e)
        {
            int len = drawnlist.Count();

            utils.Affine af = new utils.Affine();
            af.Shift(1, shy_val);

            utils.Affine temp = new utils.Affine();
            temp.Clone(drawnlist[len - 1].AF);
            utils.Matrix <float> .Mul(ref temp._matrixTransform, af._matrixTransform);

            drawnlist[len - 1].AF = temp;

            drawnlist[len - 1].Is_trans = true;
        }
Ejemplo n.º 2
0
        private void trans_flip_o_Click(object sender, EventArgs e)
        {
            OpenGL gl  = openGLControl.OpenGL;
            int    len = drawnlist.Count();

            utils.Affine af = new utils.Affine();
            af.Flip(2);
            af.Move(-(float)gl.RenderContextProvider.Width, -(float)gl.RenderContextProvider.Height);
            utils.Affine temp = new utils.Affine();
            temp.Clone(drawnlist[len - 1].AF);
            utils.Matrix <float> .Mul(ref temp._matrixTransform, af._matrixTransform);

            drawnlist[len - 1].AF = temp;

            drawnlist[len - 1].Is_trans = true;
        }