timer.cpp
上传用户:maxiaolivb
上传日期:2022-06-07
资源大小:915k
文件大小:0k
源码类别:

游戏引擎

开发平台:

Visual C++

  1. /*
  2. ** Haaf's Game Engine 1.5
  3. ** Copyright (C) 2003-2004, Relish Games
  4. ** hge.relishgames.com
  5. **
  6. ** Core functions implementation: timer
  7. */
  8. #include "hge_impl.h"
  9. float CALL HGE_Impl::Timer_GetTime()
  10. {
  11. return fTime;
  12. }
  13. float CALL HGE_Impl::Timer_GetDelta()
  14. {
  15. return fDeltaTime;
  16. }
  17. int CALL HGE_Impl::Timer_GetFPS()
  18. {
  19. return nFPS;
  20. }