{"id":379,"date":"2012-10-02T14:17:56","date_gmt":"2012-10-02T14:17:56","guid":{"rendered":"http:\/\/blog.zhukunqian.com\/?p=379"},"modified":"2012-10-20T05:15:07","modified_gmt":"2012-10-20T05:15:07","slug":"android%e5%bc%80%e5%8f%91%e7%82%b9%e6%bb%b4","status":"publish","type":"post","link":"https:\/\/blog.zhukunqian.com\/?p=379","title":{"rendered":"android\u5f00\u53d1\u70b9\u6ef4"},"content":{"rendered":"<p>1\u3001\u8bbe\u7f6e\u4e3a\u5168\u5c4f\uff1a<\/p>\n<p>\u5728activity\u4e2d\u8bbe\u7f6e\uff1a<\/p>\n<p>public void onCreate(Bundle savedInstanceState) {<br \/>\nsuper.onCreate(savedInstanceState);<br \/>\n\/\/ \u9690\u85cftitle\u680f<br \/>\nrequestWindowFeature(Window.FEATURE_NO_TITLE);<br \/>\n\/\/ \u9690\u85cf\u65f6\u95f4\u3001\u7535\u6c60\u680f<br \/>\ngetWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,<br \/>\nWindowManager.LayoutParams.FLAG_FULLSCREEN);<br \/>\nmView = new GL2JNIView(getApplication());<br \/>\nsetContentView(mView);<br \/>\n}<\/p>\n<p>2\u3001glColorPointer<\/p>\n<p>void <strong>glColorPointer<\/strong>(GLint <var>size<\/var>, GLenum <var>type<\/var>, GLsizei <var>stride<\/var>, const GLvoid * <var>pointer<\/var>)<\/p>\n<p>\u7b2c\u4e00\u4e2a\u53c2\u6570\u5fc5\u987b\u662f4\u3002<\/p>\n<p>3\u3001glTexImage2D<\/p>\n<p>http:\/\/www.khronos.org\/opengles\/documentation\/opengles1_0\/html\/glTexImage2D.html<\/p>\n<pre>void <strong>glTexImage2D<\/strong>(GLenum <var>target<\/var>,\r\n    GLint <var>level<\/var>,\r\n    GLint <var>internalformat<\/var>,\r\n    GLsizei <var>width<\/var>,\r\n    GLsizei <var>height<\/var>,\r\n    GLint <var>border<\/var>,\r\n    GLenum <var>format<\/var>,\r\n    GLenum <var>type<\/var>,\r\n    const GLvoid * <var>pixels<\/var>)<\/pre>\n<dl>\n<dt><code><var>internalformat<\/var><\/code><\/dt>\n<dd>Specifies the color components in the texture. Must be same as <code><var>format<\/var><\/code>.\u770b\u5230\u4e86\u6ca1\uff0cinternalformat must be same as format.<\/dd>\n<dd>\uff14\u3001static {<br \/>\nSystem.loadLibrary(&#8220;stlport_shared&#8221;); \/\/ \u52a0\u8f7dstl\u7684\u52a8\u6001\u5e93<br \/>\nSystem.loadLibrary(&#8220;png&#8221;); \/\/ \u52a0\u8f7dgl2\u5e93<br \/>\nSystem.loadLibrary(&#8220;gl2jni&#8221;); \/\/ \u52a0\u8f7dgl2\u5e93}<\/dd>\n<dd>\u52a8\u6001\u5e93\u52a0\u8f7d\u65f6\uff0c\u6709\u987a\u5e8f\u9650\u5236\uff0c\u5982gl2jni\u9700\u8981png\u5e93\uff0c\u5219\u9700\u8981\u5148\u52a0\u8f7dpng\u5e93\uff0c\u518d\u52a0\u8f7dgl2jni\u5e93\u3002\u5982\u679c\u63d0\u524d\u52a0\u8f7dgl2jin\u5e93\u5219\u4f1a\u5931\u8d25\u3002<\/dd>\n<dd>5\u3001error: exception handling disabled, use -fexceptions to enable\u3002<\/dd>\n<dd>\u9519\u8bef\u89e3\u51b3\u65b9\u6848\uff1a<\/dd>\n<dd>Application.mk \u4e2d\u6dfb\u52a0\uff1aAPP_CPPFLAGS += -fexceptions<\/dd>\n<dd><\/dd>\n<dd>6\u3001C++\u4e2d\u8981\u663e\u793a\u7ed9\u6307\u9488\u8d4b\u503c\u4e3aNULL<\/dd>\n<\/dl>\n","protected":false},"excerpt":{"rendered":"<p>1\u3001\u8bbe\u7f6e\u4e3a\u5168\u5c4f\uff1a \u5728activity\u4e2d\u8bbe\u7f6e\uff1a public void onCre &hellip;<\/p>\n<p class=\"read-more\"><a href=\"https:\/\/blog.zhukunqian.com\/?p=379\">\u7ee7\u7eed\u9605\u8bfb &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.zhukunqian.com\/index.php?rest_route=\/wp\/v2\/posts\/379"}],"collection":[{"href":"https:\/\/blog.zhukunqian.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.zhukunqian.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.zhukunqian.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.zhukunqian.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=379"}],"version-history":[{"count":10,"href":"https:\/\/blog.zhukunqian.com\/index.php?rest_route=\/wp\/v2\/posts\/379\/revisions"}],"predecessor-version":[{"id":382,"href":"https:\/\/blog.zhukunqian.com\/index.php?rest_route=\/wp\/v2\/posts\/379\/revisions\/382"}],"wp:attachment":[{"href":"https:\/\/blog.zhukunqian.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=379"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.zhukunqian.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=379"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.zhukunqian.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=379"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}