1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-11-26 04:12:41 +01:00
openrw/rwgame/states/BenchmarkState.hpp
2017-09-12 01:40:31 +01:00

37 lines
745 B
C++

#ifndef _RWGAME_BENCHMARKSTATE_HPP_
#define _RWGAME_BENCHMARKSTATE_HPP_
#include "State.hpp"
class BenchmarkState : public State {
struct TrackPoint {
float time;
glm::vec3 position;
glm::quat angle;
};
std::vector<TrackPoint> track;
ViewCamera trackCam;
std::string benchfile;
float benchmarkTime;
float duration;
uint32_t frameCounter;
public:
BenchmarkState(RWGame* game, const std::string& benchfile);
virtual void enter() override;
virtual void exit() override;
virtual void tick(float dt) override;
virtual void draw(GameRenderer* r) override;
virtual void handleEvent(const SDL_Event& event) override;
const ViewCamera& getCamera();
};
#endif