需要结合使用opengl和View [英] Need to use opengl in combination with View

查看:76
本文介绍了需要结合使用opengl和View的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是android的新手.我需要结合使用opengl和View Class来绘制一些东西.这该怎么做.请给我任何提示或建议...

I am new in android. I need to use opengl in combination with View Class to draw something. How to do this. plz give me any hints or suggestions...

推荐答案

您还可以选择将布局中的常规" android视图(Button,ImageView等)与GlSurfaceView组合在一起. (即FrameLayout)

You also have the option to combine "normal" android views (Button, ImageView, etc) in a layout with a GlSurfaceView. (i.e. FrameLayout)

这样做,您可以将普通的android UI与openGL结合使用,还可以制作一个复合视图,其中openGL视图只是布局的一部分.

By doing so you can combine normal android UI with openGL, you can also make a composite view where the openGL view is just part of the layout.

这是通常以3D应用叠加显示广告的方式.

This is the way ads are usually displayed overlaying 3D aplications.

请注意,这种技术在处理透明性时会在低端设备中产生非常奇怪的结果.

Be aware that this technique can produce quite weird results in low end devices when dealing with tranasparency.

这篇关于需要结合使用opengl和View的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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