예제 #1
0
 @Override
 protected void OnLoad(EventArgs arg0) {
   super.OnLoad(arg0);
   MakeCurrent();
   app.listener.create();
   app.listener.resize(0, 0); // FIXME
 }
예제 #2
0
  @Override
  protected void OnRenderFrame(FrameEventArgs arg0) {
    super.OnRenderFrame(arg0);

    long time = System.nanoTime();
    deltaTime = (time - lastFrameTime) / 1000000000.0f;
    lastFrameTime = time;

    fps++;
    if (time - framesStart >= 1000000000l) {
      framesStart = time;
      fps = frames;
      frames = 0;
    }

    MakeCurrent();
    ((IOSInput) Gdx.input).processEvents();
    app.listener.render();
    SwapBuffers();
  }
예제 #3
0
 @Override
 protected void ConfigureLayer(CAEAGLLayer layer) {
   layer.set_Opaque(true);
   super.ConfigureLayer(layer);
 }
예제 #4
0
 @Override
 public void TouchesMoved(NSSet touches, UIEvent event) {
   super.TouchesMoved(touches, event);
   input.touchMoved(touches, event);
 }
예제 #5
0
 @Override
 public void TouchesCancelled(NSSet touches, UIEvent event) {
   super.TouchesCancelled(touches, event);
   input.touchUp(touches, event);
 }
예제 #6
0
 @Override
 public void TouchesBegan(NSSet touches, UIEvent event) {
   super.TouchesBegan(touches, event);
   input.touchDown(touches, event);
 }