// // G A M E.O.N.E - LOW LEVEL LIB V1.0 // Copyright (C) 2001 LEVEL ONE ENTERTAINMENT, // Licensed under the terms of LGPL. //:--------------------------------------------------------------------------- //:Description // // FRAMEWORK global object fps display (F12 to activate) // #ifndef _FPS_H #define _FPS_H #include "llfrm_layerfloatingtext.h" // F12 drücken für ausgabe #define FPS_UPDATE_INTERVALL (16) // FPS String nach Frames, je höher der Wert desto genauer class CFps : public CLayerFloatingText { public: CFps (); virtual ~CFps (); virtual void Action(float delta); virtual void Draw(llgfx_id dstgfx); protected: float m_totaltime; int m_cnt_frames; }; #endif // _FPS_H