blob: 9140fded836cf82ab0f17a934b466dff4d53397f (
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
|
// license:BSD-3-Clause
// copyright-holders:Ryan Holtz
//============================================================
//
// sliderreader.h - BGFX shader parameter slider JSON reader
//
//============================================================
#pragma once
#ifndef __DRAWBGFX_SLIDER_READER__
#define __DRAWBGFX_SLIDER_READER__
#include "statereader.h"
class bgfx_slider;
class slider_reader : public state_reader
{
public:
static bgfx_slider* read_from_value(const Value& value);
private:
static void get_values(const Value& value, std::string name, float* values);
static void validate_parameters(const Value& value);
static const int TYPE_COUNT = 5;
static const string_to_enum TYPE_NAMES[TYPE_COUNT];
};
#endif // __DRAWBGFX_SLIDER_READER__
|