瀏覽代碼

tutorial: add a few missing “override” qualifiers.

legacy
Sam Hocevar 5 年之前
父節點
當前提交
c49bce2b8b
共有 3 個文件被更改,包括 3 次插入3 次删除
  1. +1
    -1
      doc/tutorial/04_texture.cpp
  2. +1
    -1
      doc/tutorial/05_easymesh.cpp
  3. +1
    -1
      doc/tutorial/06_sprite.cpp

+ 1
- 1
doc/tutorial/04_texture.cpp 查看文件

@@ -80,7 +80,7 @@ public:
return true;
}

virtual void tick_draw(float seconds, Scene &scene)
virtual void tick_draw(float seconds, Scene &scene) override
{
WorldEntity::tick_draw(seconds, scene);



+ 1
- 1
doc/tutorial/05_easymesh.cpp 查看文件

@@ -87,7 +87,7 @@ public:
Ticker::Unref(m_light2);
}

virtual void tick_game(float seconds)
virtual void tick_game(float seconds) override
{
WorldEntity::tick_game(seconds);



+ 1
- 1
doc/tutorial/06_sprite.cpp 查看文件

@@ -46,7 +46,7 @@ public:
Ticker::Unref(m_camera);
}

virtual void tick_game(float seconds)
virtual void tick_game(float seconds) override
{
for (int i = 0; i < SPRITE_COUNT; ++i)
{


Loading…
取消
儲存