summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/modules/render/bgfx/statereader.h
diff options
context:
space:
mode:
author ImJezze <jezze@gmx.net>2016-04-22 19:32:35 +0200
committer ImJezze <jezze@gmx.net>2016-04-22 19:32:35 +0200
commitb681e5dc2bd9972a1dd1bc34eee8d61e3791bfe5 (patch)
tree85fe33988a1bfbb848eeee5ee26c2046509b3329 /src/osd/modules/render/bgfx/statereader.h
parent9167349e5e54379054ec042e3d102c3bbae6e521 (diff)
Simplified min, max, default and step value handling for chain configuration
- min, max, default and step are now floating points without an addition scale factor
Diffstat (limited to 'src/osd/modules/render/bgfx/statereader.h')
-rw-r--r--src/osd/modules/render/bgfx/statereader.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/osd/modules/render/bgfx/statereader.h b/src/osd/modules/render/bgfx/statereader.h
index 9542116624a..6245a2cd3c8 100644
--- a/src/osd/modules/render/bgfx/statereader.h
+++ b/src/osd/modules/render/bgfx/statereader.h
@@ -36,6 +36,7 @@ protected:
static void validate_boolean_parameter(const Value& value, std::string type_name, std::string name);
static bool get_bool(const Value& value, const std::string name, const bool default_value);
+ static float get_float(const Value& value, const std::string name, float default_value);
static void get_float(const Value& value, const std::string name, float* out, float* default_value, const int count = 1);
static int get_int(const Value& value, const std::string name, int default_value);
static std::string get_string(const Value& value, const std::string name, const std::string default_value);