This repository has been archived on 2023-08-12. You can view files and clone it. You cannot open issues or pull requests or push a commit.
2017-10-11 09:48:27 -04:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <memory>
|
|
|
|
|
|
|
|
|
|
#include "../token.hpp"
|
|
|
|
|
|
2017-10-17 10:29:56 -04:00
|
|
|
namespace mstch
|
|
|
|
|
{
|
2017-10-11 09:48:27 -04:00
|
|
|
|
|
|
|
|
class render_context;
|
|
|
|
|
|
2017-10-17 10:29:56 -04:00
|
|
|
class render_state
|
|
|
|
|
{
|
|
|
|
|
public:
|
2017-10-11 09:48:27 -04:00
|
|
|
virtual ~render_state() {}
|
2017-10-17 10:29:56 -04:00
|
|
|
virtual std::string render(render_context &context, const token &token) = 0;
|
2017-10-11 09:48:27 -04:00
|
|
|
};
|
|
|
|
|
}
|