android 开发系列教程
文章平均质量分 63
superleolx
这个作者很懒,什么都没留下…
展开
-
Eclipse中Android公共库的正确建立及调用方法
http://www.cnblogs.com/SkyD/archive/2011/09/01/2161502.html转载 2011-09-01 16:12:18 · 2903 阅读 · 1 评论 -
libgdx 分析
1.Application 只是个接口而以,通过它的实现可以取到引擎的所有封装 public Graphics getGraphics (); /** @return the {@link Audio} instance */ public Audio getAudio (); /** @return the {@link Input} instance */ publi原创 2011-11-23 14:11:56 · 7675 阅读 · 1 评论 -
libgdx中的mesh
mesh就是网格,在d3d中有严格的定义, 也有专门的工具来写.x提供给d3d生成mesh,什么是mesh?简单的说就是那些点坐标,颜色,纹理,材质,光照等等的一个集合 libgdx定义的meshpublic class Mesh implements Disposable { public enum VertexDataType { VertexArray, Ver原创 2011-11-23 15:09:42 · 6000 阅读 · 2 评论 -
libgdx的移动和旋转
移动和旋转在openGL里面属于MODEL的变化,在D3D中属于世界坐标系变化看看例子里面是如何使用 private void renderBlocks (GL10 gl, ArrayList blocks) { gl.glEnable(GL10.GL_BLEND); gl.glBlendFunc(GL10.GL_SRC_ALPHA, GL10.GL_ONE_MINUS_SRC原创 2011-11-23 15:38:53 · 4684 阅读 · 1 评论 -
libgdx 用纹理绘制简单界面
GameScreen public void render () { spriteBatch.begin();// draw(Art.bg, -xLevel * 160, -yLevel * 120); draw(Art.bg, 0, 0); spriteBatch.end(); level.render(this, camera); spriteBatch.原创 2011-11-23 16:42:52 · 2902 阅读 · 0 评论 -
libgdx实例分析小记(二)
GameScreen public GameScreen (Game game) { super(game); state = GAME_READY; //游戏状态 guiCam = new OrthographicCamera(320, 480); guiCam.position.set(320 / 2, 480 / 2, 0); touchPoint = n原创 2011-11-23 18:57:54 · 3667 阅读 · 0 评论 -
libgdx一个完整的处理流程
5.Rtmpublic class Rtm extends AndroidApplicationpublic void onCreate (Bundle savedInstanceState) { super.onCreate(savedInstanceState); setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION原创 2011-11-23 17:38:18 · 4576 阅读 · 0 评论 -
libgdx实例分析小记(一)
SuperJumperpublic class SuperJumperAndroid extends AndroidApplication { /** Called when the activity is first created. */ @Override public void onCreate (Bundle savedInstanceState) { super.原创 2011-11-23 18:02:06 · 3204 阅读 · 0 评论 -
编译libgdx
编译libgdx1.安装ant 将ant下载下来,并使用相关命令解压。2.通过svn取得全部的代码3.如果只希望编译android相关的部分,修改/gdx/jni/build.xml - - - - - + -->+ -->+ -->+ -->+ 4.添加ndk路径,这里指的是xml中的,/source原创 2011-11-28 16:07:52 · 4199 阅读 · 0 评论