English 中文(简体)
如何构建简单的信条
原标题:How to structure simple Android apps

我先在安的平台上提出申请,就成为一个组织问题。 该应用将传感器用作投入,而开放式GL则作为产出。

  • The traditional method is something like organizing the project into an MVC where I have the main activity class load an OpenGL view and a sensor handling class and will then probably register some callbacks or possibly do it on a clock.
  • The sloppy alternative is having a single class that implements GLSurfaceView and SensorEventListener and then offload the logic into other classes.

• 采用非常简单的绘画法和一些复杂的控制系统法,试图在60岁时复读。 我期待着业绩、可维持性和对发展的影响的轻松,因此,所有投入都是宝贵的。 而且,在安乐施或移动发展方面,我是一个完整的创新,如果你能够用第三个也是巨大的选择向我展示光灯。

最佳回答

有时,过度规划可能浪费时间。

不同的游戏使用不同的方法,你想研究如何使用GLSurfaceView组织你的法典的复制岛歌和密码。

I use your latter approach, but it s not as sloppy as you make it seem. You don t really need any logic code in your GLSurfaceView, just calls to your classes when certain events happen. (onDraw, onTouch, onKey, etc)

Not sure what s sloppy about this, I maintain my logic in their proper classes. For example, in my onDrawFrame() I simply do MyAreaManager.draw(gl)

MyAreaManager的班子将保持自己的逻辑,并了解什么东西。

至于锁锁,你很可能要两条read子。 一种是提供(GLSurface 意见已读),一种是按某种逻辑计算。

逻辑框架只会改变入侵物体的状况,而推测框架将尽可能快地加以利用。

这样,你就能够尽快实现,并且保持稳定的逻辑框架。

问题回答

暂无回答




相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签