summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/modules/render/bgfx/writereader.h
blob: bd43b5899f5bbf92e95bafab72c2ffb67f5a51ed (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// license:BSD-3-Clause
// copyright-holders:Ryan Holtz
#pragma once

#ifndef __DRAWBGFX_WRITE_READER__
#define __DRAWBGFX_WRITE_READER__

#include "statereader.h"

class write_reader : public state_reader {
public:
	static uint64_t read_from_value(const Value& value);

private:
	static const int RGB_COUNT = 4;
	static const int ALPHA_COUNT = 4;
	static const string_to_enum RGB_NAMES[RGB_COUNT];
	static const string_to_enum ALPHA_NAMES[ALPHA_COUNT];
};

#endif // __DRAWBGFX_WRITE_READER__