File: fpshandler.h

package info (click to toggle)
amoeba 1.1-17
  • links: PTS
  • area: contrib
  • in suites: etch, etch-m68k
  • size: 732 kB
  • ctags: 971
  • sloc: cpp: 8,315; makefile: 178
file content (23 lines) | stat: -rw-r--r-- 427 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef _FPSHANDLER_H
#define _FPSHANDLER_H

#include "main/event.h"
#include "main/mainloop.h"
#include "opengl/fpscount.h"

class FPSHandler : public Event {
public:
	FPSHandler(MainLoop *ml, const char *title, const char *elem, Hashtable *attr);
	~FPSHandler();

	void start_effect();
	void draw_scene(float progress);
	void end_effect();

protected:
	bool active;

	FPSCounter *fps;
};

#endif /* defined(_FPSHANDLER_H) */