7 // Can alias on a float[3].
9 RGBTriplet(float r, float g, float b)
17 virtual bool needs_linear_light() { return true; }
18 virtual bool needs_srgb_primaries() { return true; }
19 virtual bool needs_many_samples() { return false; }
20 virtual bool needs_mipmaps() { return false; }
22 // Neither of these take ownership.
23 bool set_int(const std::string&, int value);
24 bool set_float(const std::string &key, float value);
25 bool set_vec3(const std::string &key, const float *values);
28 // Neither of these take ownership.
29 void register_int(const std::string &key, int *value);
30 void register_float(const std::string &key, float *value);
31 void register_vec3(const std::string &key, float *values);
34 std::map<std::string, int *> params_int;
35 std::map<std::string, float *> params_float;
36 std::map<std::string, float *> params_vec3;
39 #endif // !defined(_EFFECT_H)