Logo Search packages:      
Sourcecode: rgl version File versions

fps.h

#ifndef PLX_FPS_H
#define PLX_FPS_H

// C++ header file
// This file is part of RGL
//
// $Id: fps.h,v 1.1.1.1 2003/03/25 00:13:21 dadler Exp $

#include "scene.h"

//
// FPS COUNTER
//

class FPS
{
private:
  double lastTime;
  int   framecnt;
  char  buffer[12];
public:
  inline FPS() { };
  void init(double t);
  void render(double t, RenderContext* ctx);
};

#endif // PLX_FPS_H


Generated by  Doxygen 1.6.0   Back to index