Android Dev Intro - ANativeWindow
2016-05-31 18:01
501 查看
ANativeWindow
The public Surface class is implemented in the Java programming language. The equivalent in C/C++ is the ANativeWindow class, semi-exposed by the AndroidNDK. You can get the ANativeWindow from a Surface with the
ANativeWindow_fromSurface()call. Just like its Java-language cousin, you can lock it, render in software, and unlock-and-post.
To create an EGL window surface from native code, you pass an instance of EGLNativeWindowType to
eglCreateWindowSurface(). EGLNativeWindowType is just a synonym for ANativeWindow, so you
can freely cast one to the other.
The fact that the basic "native window" type just wraps the producer side of a BufferQueue should not come as a surprise.
相关文章推荐
- android intentFilter 匹配规则
- android安全退出所有activity
- android中设置ListView的选中的Item的背景颜色
- android 多线程同步-synchronized关键字
- android Vitamio(维他命)入门
- android定时器
- android webp编解码
- Android_BroadcastReceiver(三)
- 彻底明白Android中AIDL及其使用
- Android通用流行框架大全
- Android 日常开发总结的技术经验 60 条
- Android 文本监听接口TextWatcher详解
- android DisplayMetrics
- Android URL转义
- Bmob后端云的使用(1)——入门指导及实现登录注册功能
- Android学习笔记--隐藏Activity2016.05
- Android.mk简单的使用
- Android TextView设置部分字体颜色改变,部分字体背景改变
- Android 自动生成的R类
- Android(线程一) 线程