Android NDK 开发 —— 从 Assets 文件夹加载图片并上传纹理

多媒体开发札记 at 
在 OpenGL 开发中,我们要渲染一张图片,通常先是得到一张图片对应的 Bitmap ,然后将该 Bitmap 作为纹理上传到 OpenGL 中。在 Android 中有封装好的 GLUtils 类的 texImage2D 方法供我们调用。1 public static void texImage2D(int target, int level, int internalformat,2 Bitmap bitmap, int type, int border) JAVA 该方法的底层原理实际上也是解析了该 Bitmap ,得到了 Bitmap 所有的……