ISceneController.java 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. package min3d.interfaces;
  2. import android.os.Handler;
  3. /**
  4. * Interface to handle the initialization of the Scene
  5. * and the 'on-enter-frame' updates to the Scene (think 'model').
  6. *
  7. * The RendererActivity class implements this interface.
  8. *
  9. * But you could use any other class to implement this interface,
  10. * not just the Activity class.
  11. *
  12. */
  13. public interface ISceneController
  14. {
  15. /**
  16. * Initialization of scene objects happens here.
  17. *
  18. * It is called after the GL Surface is created, which means not only at startup,
  19. * but also when the application resumes after losing focus.
  20. *
  21. * It would be the end-user's responsibility to save and restore state if so desired...
  22. */
  23. public void initScene();
  24. /**
  25. * Updating properties of scene objects happens here.
  26. * This is called on every frame right before the render routine.
  27. */
  28. public void updateScene();
  29. public Handler getInitSceneHandler();
  30. public Runnable getInitSceneRunnable();
  31. public Handler getUpdateSceneHandler();
  32. public Runnable getUpdateSceneRunnable();
  33. }