Skip to content

Commit

Permalink
add SDLApplication tick
Browse files Browse the repository at this point in the history
  • Loading branch information
irov committed Sep 4, 2023
1 parent bd89d75 commit 05e4b95
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
17 changes: 17 additions & 0 deletions src/SDLApplication/SDLApplication.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,23 @@ namespace Mengine
->loopPlatform();
}
//////////////////////////////////////////////////////////////////////////
bool SDLApplication::tick( float _frameTime )
{
if( PLATFORM_SERVICE()
->updatePlatform() == false )
{
return false;
}

if( PLATFORM_SERVICE()
->tickPlatform( _frameTime ) == false )
{
return false;
}

return true;
}
//////////////////////////////////////////////////////////////////////////
void SDLApplication::finalize()
{
if( SERVICE_IS_INITIALIZE( Mengine::PlatformServiceInterface ) == true )
Expand Down
2 changes: 1 addition & 1 deletion src/SDLApplication/SDLApplication.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ namespace Mengine

public:
void loop();
bool tick( float _frameTime );

protected:
bool initializeOptionsService_( int32_t argc, Char ** const _argv );
bool initializeFileService_();
bool initializeLoggerService_();

protected:
Expand Down

0 comments on commit 05e4b95

Please sign in to comment.