如何使用Android的“面”类? [英] How do I use Android’s “Surface” classes?

查看:276
本文介绍了如何使用Android的“面”类?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有表面,SurfaceHolder,EGLSurface,SurfaceView,GLSurfaceView,表面纹理,和TextureView的详细说明?特别是:

Is there a detailed explanation of Surface, SurfaceHolder, EGLSurface, SurfaceView, GLSurfaceView, SurfaceTexture, and TextureView?  In particular:

  • 什么是SurfaceView和TextureView?之间的差异
  • 请我需要使用GLSurfaceView使用OpenGL ES?
  • 如何水陆EGLSurface互动?
  • 这是什么做的表面纹理?
  • 为什么东西我画上一个SurfaceView必须高于或低于其他一切?
  • 什么是SurfaceFlinger?
  • 如何在状态栏和导航栏组成的工作?
  • 虽然我们在这,什么是正确的方式来构建Android上的游戏循环?

推荐答案

回答这些和许多其他问题,现在可以在Android开源项目网站上找到:

The answers to these and many other questions can now be found on the Android Open Source Project web site:

Android系统级显卡

的文件与低级别的基础设施的说明开始,然后解释了更高级别的特征是如何从他们构建的。我们的目标是不提供直接的常见问题的答案,而是描述系统的详细程度,使明显的答案没有被压倒。

The document begins with an explanation of the low-level infrastructure, and then explains how the higher-level features are built from them. The goal is not to provide direct answers to common questions, but rather to describe the system at a level of detail that makes the answers apparent without being overwhelming.

材料和详细程度的选择是重用Q&放大器的影响;对计算器A

The choice of material and level of detail were heavy influenced by Q&A on stackoverflow.

(从技术上讲,这是一个链接,唯一的答案,但在这里写10000字似乎是个好主意。)

(Technically this is a link-only answer, but writing 10,000 words here seemed like a bad idea.)

这篇关于如何使用Android的“面”类?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆