动态壁纸与游戏引擎或没有? [英] Live Wallpaper with Game Engine or not?

查看:153
本文介绍了动态壁纸与游戏引擎或没有?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想建立一个动态壁纸。经过一番研究,我得出的结论是有两个选择创建一个:

I'd like to develop a live wallpaper. After some research, I concluded that there were two options to create one :

还是由于像AndEngine游戏引擎(的http:// code.google.com / P / andenginelivewallpaperextension /

Or thanks to a game engine like AndEngine ( http://code.google.com/p/andenginelivewallpaperextension/ )

我从来没有开发的动态壁纸。哪种解决方案是最简单和最快?

I've never developed Live Wallpaper. Which solution is the easiest and fastest?

推荐答案

您可以直接处理的绘画,因为在SDK中的立方体的例子。 或者你也可以使用OpenGL ES,例如通过AndEngine,LibGDX,GLWallpaperService,或RenderScript。更多的工作,但更好的性能。

You can handle the drawing directly, as in the Cube example in the SDK. Or you can use OpenGl ES, e.g. via AndEngine, LibGDX, GLWallpaperService, or RenderScript. More work, but better performance.

如果你的壁纸是相当简单的,我建议做绘图自己。这是大多数人做的。如果你需要物理(如粒子系统),看看AndEngine或LibGDX。如果你需要3D,看看GLWallpaperService。除了魔方例如,您可能想看看Android系统源$ C ​​$ C,看股票壁纸(草,银河等)如何使用RenderScript。此链接可以让你在那里,但事情继续前进:<一href="http://grep$c$c.com/file/repository.grep$c$c.com/java/ext/com.google.android/android-apps/4.1.1_r1/com/android/wallpaper/" rel="nofollow">http://grep$c$c.com/file/repository.grep$c$c.com/java/ext/com.google.android/android-apps/4.1.1_r1/com/android/wallpaper/ (然后向下滚动到壁纸)

If your wallpaper is fairly simple, I would suggest doing the drawing yourself. That is what most people do. If you need "physics" (e.g. a particle system), look at AndEngine or LibGDX. If you need 3D, look at GLWallpaperService. In addition to the Cube example, you might want to look at the Android system source code to see how the stock wallpapers (Grass, Galaxy, etc.) use RenderScript. This link may get you there, but things keep moving: http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android-apps/4.1.1_r1/com/android/wallpaper/ (then scroll down to the wallpapers)

祝你好运。 乔治。

这篇关于动态壁纸与游戏引擎或没有?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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