Pioneer
Loading...
Searching...
No Matches
Protected Member Functions | Protected Attributes | List of all members
GameLoop Class Reference
Inheritance diagram for GameLoop:
Inheritance graph
[legend]
Collaboration diagram for GameLoop:
Collaboration graph
[legend]

Protected Member Functions

void Start () override
 
void Update (float) override
 
void End () override
 
void InitGame ()
 
void EndGame ()
 
- Protected Member Functions inherited from Application::Lifecycle
virtual void Start ()
 
virtual void Update (float deltaTime)=0
 
virtual void End ()
 
void SetNextLifecycle (RefCountedPtr< Lifecycle > l)
 
bool GetProfilerAccumulate () const
 
void SetProfilerAccumulate (bool enable)
 

Protected Attributes

double time_player_died
 
Profiler::Clock perfTimer
 
float frame_time_real
 
float phys_time
 
float pigui_time
 
int frame_stat
 
int phys_stat
 
uint32_t profile_startup_ms
 
uint32_t startup_ticks
 
int MAX_PHYSICS_TICKS
 
double accumulator
 
Uint32 last_stats = SDL_GetTicks()
 

Additional Inherited Members

- Public Member Functions inherited from Application::Lifecycle
 Lifecycle ()
 
 Lifecycle (bool profilerAccumulate)
 
virtual ~Lifecycle ()
 
void RequestEndLifecycle ()
 
- Public Member Functions inherited from RefCounted
 RefCounted ()
 
virtual ~RefCounted ()
 
void IncRefCount () const
 
void DecRefCount () const
 
int GetRefCount () const
 
- Public Member Functions inherited from LuaWrappable
virtual ~LuaWrappable ()
 

Member Function Documentation

◆ End()

void GameLoop::End ( )
overrideprotectedvirtual

Reimplemented from Application::Lifecycle.

Here is the call graph for this function:

◆ EndGame()

void GameLoop::EndGame ( )
protected

◆ InitGame()

void GameLoop::InitGame ( )
protected

◆ Start()

void GameLoop::Start ( )
overrideprotectedvirtual

Reimplemented from Application::Lifecycle.

Here is the call graph for this function:

◆ Update()

void GameLoop::Update ( float  deltaTime)
overrideprotectedvirtual

Implements Application::Lifecycle.

Here is the call graph for this function:

Member Data Documentation

◆ accumulator

double GameLoop::accumulator
protected

◆ frame_stat

int GameLoop::frame_stat
protected

◆ frame_time_real

float GameLoop::frame_time_real
protected

◆ last_stats

Uint32 GameLoop::last_stats = SDL_GetTicks()
protected

◆ MAX_PHYSICS_TICKS

int GameLoop::MAX_PHYSICS_TICKS
protected

◆ perfTimer

Profiler::Clock GameLoop::perfTimer
protected

◆ phys_stat

int GameLoop::phys_stat
protected

◆ phys_time

float GameLoop::phys_time
protected

◆ pigui_time

float GameLoop::pigui_time
protected

◆ profile_startup_ms

uint32_t GameLoop::profile_startup_ms
protected

◆ startup_ticks

uint32_t GameLoop::startup_ticks
protected

◆ time_player_died

double GameLoop::time_player_died
protected

The documentation for this class was generated from the following file: