瀏覽代碼

Minor update to Game::updateOnce.

Chris Culy 14 年之前
父節點
當前提交
ebec9458d0
共有 2 個文件被更改,包括 3 次插入16 次删除
  1. 3 9
      gameplay/src/Game.h
  2. 0 7
      gameplay/src/Game.inl

+ 3 - 9
gameplay/src/Game.h

@@ -300,15 +300,9 @@ protected:
     void renderOnce(T* instance, void (T::*method)(void*), void* cookie);
     void renderOnce(T* instance, void (T::*method)(void*), void* cookie);
 
 
     /**
     /**
-     * Updates the game once.
-     *
-     * This is useful for rendering animated splash screens.
-     */
-    template <class T>
-    void updateOnce(T* instance, void (T::*method)(void*), void* cookie);
-
-    /**
-     * Updates the game once.
+     * Updates the game's internal systems (audio, animation, physics) once.
+     * 
+     * Note: This does not call the user-defined Game::update() function.
      *
      *
      * This is useful for rendering animated splash screens.
      * This is useful for rendering animated splash screens.
      */
      */

+ 0 - 7
gameplay/src/Game.inl

@@ -46,13 +46,6 @@ void Game::renderOnce(T* instance, void (T::*method)(void*), void* cookie)
     Platform::swapBuffers();
     Platform::swapBuffers();
 }
 }
 
 
-template <class T>
-void Game::updateOnce(T* instance, void (T::*method)(void*), void* cookie)
-{
-    updateOnce();
-    (instance->*method)(cookie);
-}
-
 inline void Game::setMultiTouch(bool enabled)
 inline void Game::setMultiTouch(bool enabled)
 {
 {
     Platform::setMultiTouch(enabled);
     Platform::setMultiTouch(enabled);