mirror of
https://github.com/rwengine/openrw.git
synced 2024-11-07 19:32:49 +01:00
6d80ce6424
Maybe some of replace with final, what do think?
39 lines
721 B
C++
39 lines
721 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);
|
|
|
|
void enter() override;
|
|
|
|
void exit() override;
|
|
|
|
void tick(float dt) override;
|
|
|
|
void draw(GameRenderer* r) override;
|
|
|
|
void handleEvent(const SDL_Event& event) override;
|
|
|
|
const ViewCamera& getCamera(float) override;
|
|
};
|
|
|
|
#endif
|