【发布时间】:2012-08-21 19:08:05
【问题描述】:
Android 4.0 (Ice Cream Sandwich) 发布时,在 sdk 中引入了一个新视图。这个 View 就是 TextureView。在文档中,它说 TextureView 可用于显示 OpenGL 场景的内容。
当您查看如何执行此操作时,您会发现此链接指向一个示例。
https://groups.google.com/forum/?fromgroups=#!topic/android-developers/U5RXFGpAHPE
但是,我只想将 GLSurfaceView 替换为 TextureView,并保持我的其余代码相同,并获得 TextureView 的优势。
【问题讨论】:
-
FWIW, source.android.com/devices/graphics/architecture.html 描述了 GLSurfaceView 和 TextureView 如何在系统级别进行比较,以及它们之间的权衡。
标签: android opengl-es google-tv