打开GLES还是画布? (android) [英] open GLES or canvas? (android)

查看:250
本文介绍了打开GLES还是画布? (android)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在做一个即将上市的应用程序,但我想知道,我应该使用Canvas还是Open GLES?现在我不知道如何使用开放GLES。我使用帆布大约有一年,我听说,开放GLES比帆布更好。我做一个2d的游戏,而不是一个3D游戏。应该使用canvas还是打开GLES?如果我应该使用开放的GLES,你能给我一个很好的教程如何使用它吗?还有如何做基本的东西,如控制x和y在那里或者它就像画布?请具体,因为我从来没有经历过任何一种GL。谢谢!

I am making an app that is going to be on the market soon but i'm wondering, should I use Canvas or Open GLES? right now i have no idea about how to use open GLES. I am using canvas for about have a year and I heard that open GLES is better than canvas. I am making a 2d game and not a 3d game. should i use canvas or open GLES? if i should use the open GLES, can you give me a good tutorial on how to use it? and also how to do basic things like control the x and y in there or is it just like the canvas? please be specific because i have never experienced any kind of GL. Thanks!

推荐答案

如果你有超过20个精灵,你会想到OpenGL ES。以下链接的讲座解释了截止日期和原因。

If you're going to have any more than 20 sprites you'll want to think about OpenGL ES. The following talks linked below explain the cut-offs and reasons why.

可在以下位置找到好的参考资料:

Good reference materials can be found at:

  • http://www.youtube.com/watch?v=U4Bk5rmIpic
  • http://www.youtube.com/watch?v=7-62tRHLcHk
  • http://www.youtube.com/watch?v=cdvaPyq_eBU

其中包含OpenGL ES兼容性问题和速度/性能问题。

which covers OpenGL ES compatibility issues and speed/performance issues.

在我看来,你必须在1.1或2.0 - 1.1之间进行选择,对于2d游戏来说更容易,但2.0提供了更大的灵活性。

You will have to choose between 1.1 or 2.0 - 1.1 is easier for 2d games in my opinion but 2.0 gives greater flexibility.

这篇关于打开GLES还是画布? (android)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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