1 // Copyright (C) 2002-2012 Nikolaus Gebhardt
\r
2 // This file is part of the "Irrlicht Engine".
\r
3 // For conditions of distribution and use, see copyright notice in irrlicht.h
\r
5 #ifndef __C_FPSCOUNTER_H_INCLUDED__
\r
6 #define __C_FPSCOUNTER_H_INCLUDED__
\r
8 #include "irrTypes.h"
\r
21 //! returns current fps
\r
24 //! returns primitive count
\r
25 u32 getPrimitive() const;
\r
27 //! returns average primitive count of last period
\r
28 u32 getPrimitiveAverage() const;
\r
30 //! returns accumulated primitive count since start
\r
31 u32 getPrimitiveTotal() const;
\r
33 //! to be called every frame
\r
34 void registerFrame(u32 now, u32 primitive);
\r
43 u32 PrimitivesCounted;
\r
44 u32 PrimitiveAverage;
\r
49 } // end namespace video
\r
50 } // end namespace irr
\r