7eef89fece
Switch from Debug to Release build configuration Remove deprecated codecvt.h dependency Add new Renderer class for GUI support Implement basic game timing with program start tracking Create main_gui.cpp for SDL2-based rendered application Update Timer to track duration in reference variable Add font loading and rendering capabilities Remove debug flags from build configuration ```
26 lines
488 B
C++
26 lines
488 B
C++
#pragma once
|
|
|
|
#include <memory>
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
class World;
|
|
class Robot;
|
|
|
|
class Renderer {
|
|
public:
|
|
Renderer();
|
|
~Renderer();
|
|
|
|
bool init();
|
|
void render( const World& world, const std::vector<Robot*>& robots, int round, const std::vector<std::string>& log );
|
|
|
|
bool waitForStep();
|
|
void setAutoAdvanceMs( int ms );
|
|
bool isOpen() const;
|
|
|
|
private:
|
|
struct Impl;
|
|
std::unique_ptr<Impl> impl_;
|
|
};
|