{"id":4480,"date":"2018-08-30T11:46:19","date_gmt":"2018-08-30T03:46:19","guid":{"rendered":"http:\/\/www.bookcard.net\/wordpress\/?p=4480"},"modified":"2018-10-14T21:27:32","modified_gmt":"2018-10-14T13:27:32","slug":"android_game_matrix","status":"publish","type":"post","link":"https:\/\/www.bookcard.net\/wordpress\/android_game_matrix\/","title":{"rendered":"Android\u904a\u6232\u4e4b\u77e9\u9663\u548c\u8b8a\u63db"},"content":{"rendered":"<figure id=\"attachment_4481\" aria-describedby=\"caption-attachment-4481\" style=\"width: 1200px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/www.bookcard.net\/wordpress\/wp-content\/uploads\/2018\/08\/Android_Game_Matrix.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-4481\" src=\"https:\/\/www.bookcard.net\/wordpress\/wp-content\/uploads\/2018\/08\/Android_Game_Matrix.jpg\" alt=\"\" width=\"1200\" height=\"800\" srcset=\"https:\/\/www.bookcard.net\/wordpress\/wp-content\/uploads\/2018\/08\/Android_Game_Matrix.jpg 1200w, https:\/\/www.bookcard.net\/wordpress\/wp-content\/uploads\/2018\/08\/Android_Game_Matrix-300x200.jpg 300w, https:\/\/www.bookcard.net\/wordpress\/wp-content\/uploads\/2018\/08\/Android_Game_Matrix-768x512.jpg 768w, https:\/\/www.bookcard.net\/wordpress\/wp-content\/uploads\/2018\/08\/Android_Game_Matrix-1024x683.jpg 1024w\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" \/><\/a><figcaption id=\"caption-attachment-4481\" class=\"wp-caption-text\">Android\u904a\u6232\u4e4b\u77e9\u9663\u548c\u8b8a\u63db<\/figcaption><\/figure>\n<p>OpenGL ES\u77e9\u9663\u63d0\u4f9b\u4ee5\u4e0b\u904b\u7b97\u80fd\u529b<\/p>\n<ol>\n<li>\u300e\u77e9\u9663\u300f\u53ef\u5c07\u300e\u9802\u9ede\u300f\u79fb\u52d5glTranslatef()<\/li>\n<li>\u300e\u77e9\u9663\u300f\u7e2e\u653e\u300e\u9802\u9ede\u300f,\u5373\u5c07\u300e\u9802\u9ede\u300f\u500b\u5ea7\u6a19\u5206\u91cf\u5269\u4ee5\u7e2e\u653e\u503cglScalef()<\/li>\n<li>\u300e\u77e9\u9663\u300f\u53ef\u4ee4\u300e\u9802\u9ede\u300f\u7e5e\u67d0\u8ef8\u65cb\u8f49glRotatef()<\/li>\n<li>\u300e\u9802\u9ede\u300f\u5269\u4ee5\u300e\u55ae\u4f4d\u77e9\u9663\u300f\u76f8\u7576\u65bc\u5269 glLoadIdentity()<\/li>\n<li>\u5169\u500b\u300e\u77e9\u9663\u300f\u76f8\u5269\u5f97\u5230\u65b0\u300e\u77e9\u9663\u300f\u5269\u4ee5\u67d0\u500b\u9802\u9ede.\u76f8\u7576\u65bc\u5169\u300e\u77e9\u9663\u300f\u5269\u4ee5\u9802\u9ede\u5f8c\u518d\u76f8\u5269glMultMatrixf()<\/li>\n<\/ol>\n<p>OpenGL ES\u63d0\u4f9b\u6709\u4e09\u7a2e\u300e\u77e9\u9663\u300f<\/p>\n<p>\u6295\u5f71\u77e9\u9663:\u5efa\u7acb\u8996\u9310\u9ad4\u5f62\u72c0\u548c\u5c3a\u5bf8.\u5b83\u6c7a\u5b9a\u6295\u5f71\u985e\u578b\u548c\u7747\u5230\u7bc4\u570d<\/p>\n<p>\u6a21\u578b\u8996\u5716\u77e9\u9663:\u5728\u6a21\u578b\u7a7a\u9593\u4e2d\u7528\u8a72\u77e9\u9663\u8b8a\u63db3D\u6a21\u578b.\u4e26\u5c07\u5176\u57283D\u7a7a\u9593\u4e2d\u79fb\u52d5<\/p>\n<p>\u7d0b\u7406\u77e9\u9663:\u7528\u65bc\u52d5\u614b\u64cd\u7e31\u7d0b\u7406\u77e9\u9663<\/p>\n<p>\u8a2d\u7f6e\u7576\u524d\u77e9\u9663\u70ba\u300e\u6295\u5f71\u77e9\u9663\u300f<\/p>\n<p>GL10.glMatrixMode(GL10.GL_PROJECTION);<\/p>\n<p>\u5728\u68e7\u9802\u8f09\u5165\u55ae\u4f4d\u64da\u9663<\/p>\n<p>GL10.glLoadIdentity();<\/p>\n<p>\u7136\u5f8c\u5269\u4ee5\u6b63\u4ea4\u6295\u5f71\u77e9\u9663<\/p>\n<p>GL10.glOrthof(-1,1,-1,1, 1, -1);<\/p>\n<p>\u8a2d\u7f6e\u7576\u524d\u77e9\u9663\u300e\u6a21\u578b\u8996\u5716\u77e9\u9663\u300f<\/p>\n<p>GL10.glMatrixMode(GL10.GL_PROJECTION);<\/p>\n<p>\u5728\u68e7\u9802\u8f09\u5165\u55ae\u4f4d\u64da\u9663<\/p>\n<p>GL10.glLoadIdentity();<\/p>\n<p>3D\u7a7a\u9593\u4e2d\u5e73\u79fb<\/p>\n<p>GL10.glTranslatef(x,y,z);<\/p>\n<p>\u7e5eY\u8ef8\u65cb\u8f49<\/p>\n<p>GL10.glRoate(angle,0,1,0);<\/p>\n<p>\u5c07\u7576\u524d\u68e7\u9802\u62f7\u8c9d\u4e26\u58d3\u5165\u68e7\u9802<\/p>\n<p>GL10.glPushMatrix();<\/p>\n<p>\u77e9\u9663\u68e7\u9802\u51fa\u68e7<\/p>\n<p>GL10.glPopMatrix();<\/p>\n","protected":false},"excerpt":{"rendered":"<p>OpenGL ES\u77e9\u9663\u63d0\u4f9b\u4ee5\u4e0b\u904b\u7b97\u80fd\u529b \u300e\u77e9\u9663\u300f\u53ef\u5c07\u300e\u9802\u9ede\u300f\u79fb\u52d5glTranslatef() \u300e\u77e9\u9663\u300f\u7e2e\u653e\u300e\u9802 &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.bookcard.net\/wordpress\/android_game_matrix\/\" class=\"more-link\">\u7e7c\u7e8c\u95b1\u8b80 <span class=\"screen-reader-text\">Android\u904a\u6232\u4e4b\u77e9\u9663\u548c\u8b8a\u63db<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,62],"tags":[2,50],"class_list":["post-4480","post","type-post","status-publish","format-standard","hentry","category-android","category-opengl","tag-android","tag-opengl","entry"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.bookcard.net\/wordpress\/wp-json\/wp\/v2\/posts\/4480","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bookcard.net\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bookcard.net\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bookcard.net\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bookcard.net\/wordpress\/wp-json\/wp\/v2\/comments?post=4480"}],"version-history":[{"count":2,"href":"https:\/\/www.bookcard.net\/wordpress\/wp-json\/wp\/v2\/posts\/4480\/revisions"}],"predecessor-version":[{"id":4483,"href":"https:\/\/www.bookcard.net\/wordpress\/wp-json\/wp\/v2\/posts\/4480\/revisions\/4483"}],"wp:attachment":[{"href":"https:\/\/www.bookcard.net\/wordpress\/wp-json\/wp\/v2\/media?parent=4480"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bookcard.net\/wordpress\/wp-json\/wp\/v2\/categories?post=4480"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bookcard.net\/wordpress\/wp-json\/wp\/v2\/tags?post=4480"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}