summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/modules/render/bgfx/writereader.h
blob: 854505bc9cff779ca07defeda919a9e8e18c82e3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#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__