16 #ifndef SURGSIM_BLOCKS_GRAPHICSUTILITIES_H 17 #define SURGSIM_BLOCKS_GRAPHICSUTILITIES_H 20 #include <unordered_map> 41 typedef std::unordered_map<std::string, std::shared_ptr<SurgSim::Graphics::OsgMaterial>> Materials;
52 void enable2DTexture(std::shared_ptr<SurgSim::Graphics::OsgMaterial> material,
53 const std::string& uniform,
55 const std::string& filename =
"",
bool repeat =
false);
62 std::shared_ptr<SurgSim::Graphics::OsgMaterial> createPlainMaterial(
63 const std::string& name,
75 std::shared_ptr<SurgSim::Graphics::OsgMaterial> createTexturedMaterial(
76 const std::string& name,
80 const std::string& diffuseMap =
"");
91 std::shared_ptr<SurgSim::Graphics::OsgMaterial> createNormalMappedMaterial(
92 const std::string& name,
96 const std::string& diffuseMap =
"",
97 const std::string& normalMap =
"");
119 void applyMaterials(std::shared_ptr<SurgSim::Framework::Scene> scene,
120 std::string materialFilename,
121 const Materials& materials);
Wraps glewInit() to separate the glew opengl definitions from the osg opengl definitions only imgui n...
Definition: AddRandomSphereBehavior.cpp:36
Eigen::Matrix< float, 4, 1 > Vector4f
A 4D vector of floats.
Definition: Vector.h:45
Definitions of small fixed-size vector types.