Pārlūkot izejas kodu

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

scene so that g_scene can be deprecated later.
master
Sam Hocevar pirms 10 gadiem
vecāks
revīzija
70e6a8e570
6 mainītis faili ar 9 papildinājumiem un 9 dzēšanām
  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 Parādīt failu

@@ -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 Parādīt failu

@@ -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 Parādīt failu

@@ -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 Parādīt failu

@@ -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 Parādīt failu

@@ -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 Parādīt failu

@@ -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();


Notiek ielāde…
Atcelt
Saglabāt