You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
709 B
C++

//
// 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 <n> 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