开发者

Animations in OpenGL ES 1.x

I am creating a real time game for android and so far I create the moving player using the commands glTranslatef () glRotatef () etc.

In Google I/O 2009 it says that JNI functions (glXXX()) are inefficient.

Therefore my cu开发者_StackOverflow社区rrent methods of animation might not be the best.

I haven't come across using 'sprites' can someone tell me about that, or some other way of animation using OpenGL? Links to tutorials and/or docs will be awesome!


Take a look at AndEngine Sprite Example, and WiEngine Sprite Example for sprite examples. Also you can use the NDK to access OpenGLES context. The NDK has much better support now than in 2009. In particular you can access to OpenGLES2.x and a few other things that are hard to do using JNI and or are not available in the Android java API, like certain sound operations, etc...

Another thing is that that presentation is highly inaccurate... please look up the 2010 version that is much better Real Time Games Redux 2010, since it represents over a year of experience by the author.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜