Ejemplo n.º 1
0
        public override void Render()
        {
            Device_.ClearColor(new Colorf(0.0f, 0.1f, 0.1f, 1.0f));
            Device_.Clear(ClearType.Color | ClearType.Depth);

            //Device_.DrawDebug();return;

            var ObjMatrix = Matrix4x4.CreateRotationY(Value_);

            //ObjMatrix = Matrix4x4.Identity;

            Shader_.ModelMatrix               = Matrix4x4.Identity;
            Shader_.ViewMatrix                = Camera_.ViewMatrix;
            Shader_.ProjectionMatrix          = Camera_.ProjectionMatrix;
            Shader_.ModelViewMatrix           = Shader_.ModelMatrix * Shader_.ViewMatrix;
            Shader_.ModelViewProjectionMatrix = Shader_.ModelViewMatrix * Shader_.ProjectionMatrix;
            Matrix4x4.Invert(Shader_.ModelMatrix, out var NormalMatrix);
            NormalMatrix         = Matrix4x4.Transpose(NormalMatrix);
            Shader_.NormalMatrix = NormalMatrix;
            Shader_.CameraPos    = Camera_.Position;

            Device_.BindVertexBuffer(VertexBuffer_);
            Device_.BindIndexBuffer(IndexBuffer_);
            Device_.UseShader(Shader_);
            //Device_.DrawArrays(PrimitiveType.Triangle, 0, 6);
            Device_.DrawElements(PrimitiveType.Triangle, 0, 0, 6);
        }
Ejemplo n.º 2
0
        private void btn_getLoginQrcode_Click(object sender, EventArgs e)
        {
            Action action = () =>
            {
                var GetLoignQrcode = xcode.GetLoginQRcode();

                //put(JsonConvert.SerializeObject(GetLoignQrcode));
                if (GetLoignQrcode.BaseResponse.Ret == (int)MMPro.MM.RetConst.MM_OK)
                {
                    if (GetLoignQrcode.QRCode.iLen > 0)
                    {
                        pB_Qrcode.Image = Image.FromStream(new MemoryStream(GetLoignQrcode.QRCode.Buffer));
                    }
                    CheckLogin();
                    //Console.WriteLine(uuid);
                }
                else
                {
                    rtb_Msg.AppendText("获取二维码失败!");
                }
            };

            action.BeginInvoke(new AsyncCallback((IAsyncResult result) =>
            {
                rtb_Msg.BeginInvoke(new Action(() => rtb_Msg.AppendText("已确认 等待登陆")));

                //
            }), null);

            Device_ s = xcode.DeviceS;
        }
Ejemplo n.º 3
0
        public override void Render()
        {
            Device_.ClearColor(new Colorf(0.0f, 0.1f, 0.1f, 1.0f));
            Device_.Clear(ClearType.Color | ClearType.Depth);

            Shader_.ModelMatrix               = Model_.Transform;
            Shader_.ViewMatrix                = Camera_.ViewMatrix;
            Shader_.ProjectionMatrix          = Camera_.ProjectionMatrix;
            Shader_.ModelViewMatrix           = Shader_.ModelMatrix * Shader_.ViewMatrix;
            Shader_.ModelViewProjectionMatrix = Shader_.ModelViewMatrix * Shader_.ProjectionMatrix;
            Matrix4x4.Invert(Shader_.ModelMatrix, out var NormalMatrix);
            NormalMatrix         = Matrix4x4.Transpose(NormalMatrix);
            Shader_.NormalMatrix = NormalMatrix;
            Shader_.CameraPos    = Camera_.Position;

            Model_.Draw(Device_, Shader_);
            //Model_.Draw(Device_, Shader_, 1);
        }
Ejemplo n.º 4
0
        private void button11_Click(object sender, EventArgs e)
        {
            Device_ device = new Device_();

            string data = tb_data62.Text;

            string[] a16 = data.Split('|');
            //4086207604 tttt8557 Ae0fb5820273737

            device.devicelId  = a16[2]; //a16 主要这个参数
            device.IMEI       = a16[3]; // imei
            device.DeviceName = a16[8]; //随便
            // 建议使用a16 数据对里面的数据进行替换
            //device.DevicelType = string.Format("<softtype><lctmoc>0</lctmoc><level>1</level><k1>ARMv7 processor rev 1 (v7l) </k1><k2></k2><k3>{0}</k3><k4>{1}</k4><k5>460007337766541</k5><k6>89860012221746527381</k6><k7>{2}</k7><k8>unknown</k8><k9>{3}</k9><k10>2</k10><k11>placeholder</k11><k12>0001</k12><k13>0000000000000001</k13><k14>{4}</k14><k15></k15><k16>neon vfp swp half thumb fastmult edsp vfpv3 idiva idivt</k16><k18>e89b158e4bcf922ebd09eb83f5378e11</k18><k21>\"wireless\"</k21><k22></k22><k24>{5}</k24><k26>0</k26><k30>\"wireless\"</k30><k33>com.tencent.mm</k33><k34>Android-x86/android_x86/x86:5.1.1/LMY48Z/denglibo08021647:userdebug/test-keys</k34><k35>vivo v3</k35><k36>unknown</k36><k37></k37><k38>x86</k38><k39>android_x86</k39><k40>taurus</k40><k41>1</k41><k42></k42><k43>null</k43><k44>0</k44><k45></k45><k46></k46><k47>wifi</k47><k48>{6}</k48><k49>/data/data/com.tencent.mm/</k49><k52>0</k52><k53>0</k53><k57>1080</k57><k58></k58><k59>0</k59></softtype>", a16[10], a16[3], a16[4], a16[8], a16[5], a16[5], a16[10]);

            device.DevicelType = "<softtype><lctmoc>0</lctmoc><level>1</level><k1>ARMv7 processor rev 1 (v7l) </k1><k2></k2><k3>5.1.1</k3><k4>865166024671219</k4><k5>460007337766541</k5><k6>89860012221746527381</k6><k7>d3151233cfbb4fd4</k7><k8>unknown</k8><k9>iPhon 100</k9><k10>2</k10><k11>placeholder</k11><k12>0001</k12><k13>0000000000000001</k13><k14>01:61:19:58:78:d2</k14><k15></k15><k16>neon vfp swp half thumb fastmult edsp vfpv3 idiva idivt</k16><k18>e89b158e4bcf922ebd09eb83f5378e11</k18><k21>\"wireless\"</k21><k22></k22><k24>41:27:91:12:5e:14</k24><k26>0</k26><k30>\"wireless\"</k30><k33>com.tencent.mm</k33><k34>Android-x86/android_x86/x86:5.1.1/LMY48Z/denglibo08021647:userdebug/test-keys</k34><k35>vivo v3</k35><k36>unknown</k36><k37>iPhon</k37><k38>x86</k38><k39>android_x86</k39><k40>taurus</k40><k41>1</k41><k42>100</k42><k43>null</k43><k44>0</k44><k45></k45><k46></k46><k47>wifi</k47><k48>865166024671219</k48><k49>/data/data/com.tencent.mm/</k49><k52>0</k52><k53>0</k53><k57>1080</k57><k58></k58><k59>0</k59></softtype>";
            var ManualAuth = xcode.Android_Login(a16[0], a16[1], device);



            if (ManualAuth.baseResponse.ret == MMPro.MM.RetConst.MM_ERR_IDC_REDIRECT)
            {
                //Console.WriteLine(ManualAuth.dnsInfo.builtinIplist.shortConnectIplist[0].ip);
                //byte[] s = Util.Serialize<MM.BuiltinIP>(ManualAuth.dnsInfo.builtinIplist.shortConnectIplist.shortConnectIplist[1]);
                //int len = (int)ManualAuth.dnsInfo.builtinIplist.shortconnectIpcount;
                //Util.shortUrl = "http://" + ManualAuth.dnsInfo.newHostList.list[1].substitute;
                //put(Util.shortUrl);

                //继续检查状态
                //chek.Start();
                button11_Click(sender, e);
            }
            else if (ManualAuth.baseResponse.ret == MMPro.MM.RetConst.MM_OK)
            {
                put(JsonConvert.SerializeObject(ManualAuth));
                put(JsonConvert.SerializeObject(xcode.DeviceS));
            }
            else
            {
                put(JsonConvert.SerializeObject(ManualAuth));
            }
        }
Ejemplo n.º 5
0
        private void button1_Click(object sender, EventArgs e)
        {
            Device_ s = JsonConvert.DeserializeObject <Device_>(rtb_Msg.Text);

            xcode = new NewXcode(new Device_()
            {
                devicelId        = s.devicelId,
                AesKey           = s.AesKey,
                autoAuthKey_buff = s.autoAuthKey_buff,
                cookie           = s.cookie,
                m_Uin            = s.m_Uin,
                shortUrl         = s.shortUrl,
                DevicelType      = s.DevicelType,
                DeviceName       = s.DeviceName,
                IMEI             = s.IMEI,
                pri_key_buf      = s.pri_key_buf,
                pub_key_buf      = s.pub_key_buf,
                UUid             = s.UUid,
                SyncKey          = s.SyncKey
            });

            //var geta8key = newXcode.GetA8Key("weixin", "http://mp.weixin.qq.com/s?__biz=MzA5MDAwOTExMw==&mid=200126214&idx=1&sn=a1e7410ec56de5b6c4810dd7f7db8a47&chksm=1e0b3470297cbd666198666278421aed0a131d775561c08f52db0c82ce0e6a9546aac072a20e&mpshare=1&scene=1&srcid=0408bN3ACxqAH6jyq4vCBP9e#rd");
            // put(JsonConvert.SerializeObject(geta8key));
        }