blob: 7edf5e456faff3bf37f01f60778466e042849448 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
// license:BSD-3-Clause
// copyright-holders:Ryan Holtz
//============================================================
//
// targetreader.h - BGFX target JSON reader
//
//============================================================
#pragma once
#ifndef __DRAWBGFX_TARGET_READER__
#define __DRAWBGFX_TARGET_READER__
#include <string>
#include "statereader.h"
class bgfx_target;
class chain_manager;
class target_reader : public state_reader
{
public:
static bgfx_target* read_from_value(const Value& value, std::string prefix, chain_manager& chains, uint32_t screen_index);
private:
static bool validate_parameters(const Value& value, std::string prefix);
static const int STYLE_COUNT = 3;
static const string_to_enum STYLE_NAMES[STYLE_COUNT];
};
#endif // __DRAWBGFX_TARGET_READER__
|