/android/LGame-Android-0.2.96/src/org/loon/framework/android/game/Android2DSurface.java

http://loon-simple.googlecode.com/ · Java · 66 lines · 24 code · 21 blank · 21 comment · 0 complexity · 6b292b60ab4036c8eedcaaf20f8910dd MD5 · raw file

  1. package org.loon.framework.android.game;
  2. import org.loon.framework.android.game.core.EmulatorButtons;
  3. import org.loon.framework.android.game.core.EmulatorListener;
  4. import org.loon.framework.android.game.core.graphics.LImage;
  5. import android.graphics.Bitmap;
  6. /**
  7. *
  8. * Copyright 2008 - 2010
  9. *
  10. * Licensed under the Apache License, Version 2.0 (the "License"); you may not
  11. * use this file except in compliance with the License. You may obtain a copy of
  12. * the License at
  13. *
  14. * http://www.apache.org/licenses/LICENSE-2.0
  15. *
  16. * Unless required by applicable law or agreed to in writing, software
  17. * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  18. * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  19. * License for the specific language governing permissions and limitations under
  20. * the License.
  21. *
  22. * @project loonframework
  23. * @author chenpeng
  24. * @email ceponline@yahoo.com.cn
  25. * @version 0.1.0
  26. */
  27. public interface Android2DSurface {
  28. public void setFPS(long frames);
  29. public long getMaxFPS();
  30. public long getCurrentFPS();
  31. public void update();
  32. public void update(LImage img);
  33. public void update(Bitmap bit);
  34. public void updateLocation(Bitmap bit, int x, int y);
  35. public void updateLocation(LImage img, int x, int y);
  36. public void updateResize(LImage img, int w, int h);
  37. public void updateResize(Bitmap bit, int w, int h);
  38. public void update(LImage img, int w, int h);
  39. public void update(Bitmap bit, int w, int h);
  40. public void updateFull(LImage img, int w, int h);
  41. public void updateFull(Bitmap bit, int w, int h);
  42. public void setEmulatorListener(EmulatorListener emulator);
  43. public EmulatorListener getEmulatorListener();
  44. public EmulatorButtons getEmulatorButtons();
  45. }