浏览代码

scenegraph: Entity::TickDraw() now provides a reference to the current

scene so that g_scene can be deprecated later.
master
Sam Hocevar 10 年前
父节点
当前提交
70e6a8e570
共有 6 个文件被更改,包括 9 次插入9 次删除
  1. +2
    -2
      neercs/neercs.cpp
  2. +1
    -1
      neercs/neercs.h
  3. +2
    -2
      neercs/term/term.cpp
  4. +1
    -1
      neercs/term/term.h
  5. +2
    -2
      neercs/video/render.cpp
  6. +1
    -1
      neercs/video/render.h

+ 2
- 2
neercs/neercs.cpp 查看文件

@@ -39,9 +39,9 @@ void Neercs::TickGame(float seconds)
WorldEntity::TickGame(seconds);
}

void Neercs::TickDraw(float seconds)
void Neercs::TickDraw(float seconds, Scene &scene)
{
WorldEntity::TickDraw(seconds);
WorldEntity::TickDraw(seconds, scene);
}

Neercs::~Neercs()


+ 1
- 1
neercs/neercs.h 查看文件

@@ -27,7 +27,7 @@ public:

protected:
virtual void TickGame(float seconds);
virtual void TickDraw(float seconds);
virtual void TickDraw(float seconds, Scene &scene);

private:
Term *m_term;


+ 2
- 2
neercs/term/term.cpp 查看文件

@@ -165,9 +165,9 @@ void Term::TickGame(float seconds)
#endif
}

void Term::TickDraw(float seconds)
void Term::TickDraw(float seconds, Scene &scene)
{
Entity::TickDraw(seconds);
Entity::TickDraw(seconds, scene);
}

Term::~Term()


+ 1
- 1
neercs/term/term.h 查看文件

@@ -92,7 +92,7 @@ public:

protected:
virtual void TickGame(float seconds);
virtual void TickDraw(float seconds);
virtual void TickDraw(float seconds, Scene &scene);

private:
/* Terminal emulation main entry point */


+ 2
- 2
neercs/video/render.cpp 查看文件

@@ -1078,7 +1078,7 @@ void Render::Pause()
m_pause=!m_pause;
}

void Render::TickDraw(float seconds)
void Render::TickDraw(float seconds, Scene &scene)
{
/* keyboard manager */
#if 0
@@ -1379,7 +1379,7 @@ void Render::TickDraw(float seconds)
}
#endif

Entity::TickDraw(seconds);
Entity::TickDraw(seconds, scene);

if (!m_ready)
{


+ 1
- 1
neercs/video/render.h 查看文件

@@ -15,7 +15,7 @@ public:

protected:
virtual void TickGame(float seconds);
virtual void TickDraw(float seconds);
virtual void TickDraw(float seconds, Scene &scene);

void Draw2D();
void Draw3D();


正在加载...
取消
保存