android纹理
来源:互联网 发布:淘宝网狗狗宠物店 编辑:程序博客网 时间:2024/05/19 13:59
刚接触android不久,遇到glGenTextures一直返回为0的问题, 百度&google了很久都没有找到原因。
翻看GLSurfaceView的文档,发现The renderer will be called on a separate thread, so that rendering performance is decoupled from the UI thread. Clients typically need to communicate with the renderer from the UI thread, because that's where input events are received. Clients can communicate using any of the standard Java techniques for cross-thread communication, or they can use the queueEvent(Runnable)
convenience method.
注意,一定要在opengl的那个线程里面去申请纹理id。
在GLSurfaceView有一个方法queueEvent。
queueEvent(new Runnable(){
publicvoid run() {
// dosomething
}
});
0 0
- android纹理
- android 3D-纹理------球的纹理
- Android OpenGL中的纹理
- Android OpenGL中的纹理
- Android之多重纹理
- Android OpenGL10 纹理 <4>
- Android OpenGL添加纹理
- android 绘制纹理
- android opengles 纹理
- Android OpenGL纹理
- Android 优化之 纹理
- Android opengl 立方体 多纹理
- Android OpenGL ES (2) -- 纹理
- android 游戏纹理贴图总结
- android opengl压缩纹理读入
- android 游戏 纹理映射 未完成
- Android 纹理定距离移动
- android openGl纹理的使用
- ZOJ 1109 ————————字典树基础
- windows编程学习笔记(1)创建窗口与消息循环
- 广度优先搜索 入门:抓住那头牛
- LeetCode 二叉树的最小深度
- 多边形周长均分
- android纹理
- [php] 将数字金额转换大写
- zoj 1649 BFS
- jsp和serverlet的区别
- PHP 操作MySQL时mysql_connect( )和Mysqli( )的两种报错机制
- 数据库解析——InnoDB的行锁模式及加锁方法
- libcurl 上传文件至 web服务器
- CentOS6 安装Tomcat7
- JavaScript中prototype、constructor、hasOwnProperty()、isPrototypeOf()学习笔记