10#include <SFML/Graphics.hpp>
15#include "ViewObject.h"
19const std::string FRAPS_STRING =
"fps";
20const std::string FRAPS_FILENAME =
"fraps";
21#define FRAPS_LOG_MESSAGE "Fraps: frame rate %.0f f/s"
bool m_do_record
True if recording.
Definition: Fraps.h:26
void setRecord(bool new_record)
Set whether record or not.
sf::Texture m_texture
Texture for image capture.
Definition: Fraps.h:30
Clock m_clock
For computing frame rate.
Definition: Fraps.h:28
FILE * m_p_screen
Output file handle.
Definition: Fraps.h:29
int eventHandler(const Event *p_e) override
Handle event each step.
Fraps(bool do_record=false)
Frames per second meter (with option to record screen).
bool m_do_frame_rate
True if logging frame rate.
Definition: Fraps.h:27
void setLogFrameRate(bool new_do_frame_rate)
Set whether log frame rate or not.
Definition: ViewObject.h:39
An animation for a sprite.
Definition: Animation.h:15