1 | #ifndef FASTUIDRAW_DEMO_READ_COLORSTOPS_HPP |
2 | #define FASTUIDRAW_DEMO_READ_COLORSTOPS_HPP |
3 | |
4 | #include <istream> |
5 | #include <fastuidraw/colorstop.hpp> |
6 | |
7 | /* Read a color stop from an std::stream. The file is formatted as: |
8 | stop_time red green blue alpha |
9 | stop_time red green blue alpha |
10 | . |
11 | . |
12 | |
13 | where each stop_time is a floating point value in the range [0.0, 1.0] |
14 | and the value red, green, blue and alpha are integers in the range [0,255] |
15 | */ |
16 | void |
17 | read_colorstops(fastuidraw::ColorStopArray &seq, std::istream &input); |
18 | |
19 | #endif |
20 | |