14#include <lagrange/ui/api.h>
15#include <lagrange/ui/Entity.h>
16#include <lagrange/ui/types/ShaderLoader.h>
25 Material(Registry& r, StringID shader_id,
const ShaderDefines& shader_defines = {});
27 StringID shader_id()
const;
29 std::unordered_map<StringID, int> int_values;
30 std::unordered_map<StringID, float> float_values;
31 std::unordered_map<StringID, bool> bool_values;
32 std::unordered_map<StringID, Color> color_values;
33 std::unordered_map<StringID, ShaderTextureValue> texture_values;
34 std::unordered_map<StringID, Eigen::Matrix4f> mat4_values;
35 std::unordered_map<StringID, std::vector<Eigen::Matrix4f>> mat4_array_values;
36 std::unordered_map<StringID, Eigen::Vector4f> vec4_values;
37 std::unordered_map<StringID, std::vector<Eigen::Vector4f>> vec4_array_values;
39 void set_vec4(
const std::string& name,
const Eigen::Vector4f& vec);
40 void set_vec4(StringID
id,
const Eigen::Vector4f& vec);
41 void set_vec4_array(
const std::string& name,
const Eigen::Vector4f* vectors,
size_t N);
42 void set_vec4_array(StringID
id,
const Eigen::Vector4f* vectors,
size_t N);
44 void set_mat4(
const std::string& name,
const Eigen::Matrix4f& matrix);
45 void set_mat4(StringID
id,
const Eigen::Matrix4f& matrix);
46 void set_mat4_array(
const std::string& name,
const Eigen::Matrix4f* matrices,
size_t N);
47 void set_mat4_array(StringID
id,
const Eigen::Matrix4f* matrices,
size_t N);
49 void set_color(
const std::string& name,
Color color);
50 void set_color(StringID
id,
Color color);
51 const Color get_color(StringID
id);
52 const Color get_color(
const std::string& name);
53 void set_texture(
const std::string& name, std::shared_ptr<Texture> texture);
54 void set_texture(StringID
id, std::shared_ptr<Texture> texture);
55 std::shared_ptr<Texture> get_texture(StringID
id);
56 std::shared_ptr<Texture> get_texture(
const std::string& name);
58 void set_float(
const std::string& name,
float value);
59 void set_float(StringID
id,
float value);
60 float get_float(StringID
id);
61 float get_float(
const std::string& name);
63 void set_int(
const std::string& name,
int value);
64 void set_int(StringID
id,
int value);
66 void set_bool(
const std::string& name,
bool value);
67 void set_bool(StringID
id,
bool value);
Definition: Material.h:23
Lagrange UI Viewer and mini 3D engine.
Definition: AcceleratedPicking.h:22
Main namespace for Lagrange.
Definition: AABBIGL.h:30