|
void | SurgSim::Blocks::enable2DTexture (std::shared_ptr< SurgSim::Graphics::OsgMaterial > material, const std::string &uniform, int unit, const std::string &filename="", bool repeat=false) |
| Provide a consistent interface to add texture uniforms on materials, adds the actual texture with a given minimum unit, or provides a placeholder uniform for the unit. More...
|
|
std::shared_ptr< SurgSim::Graphics::OsgMaterial > | SurgSim::Blocks::createPlainMaterial (const std::string &name, SurgSim::Math::Vector4f diffuseColor, SurgSim::Math::Vector4f specularColor, float shininess) |
| Create a basic material. More...
|
|
std::shared_ptr< SurgSim::Graphics::OsgMaterial > | SurgSim::Blocks::createTexturedMaterial (const std::string &name, SurgSim::Math::Vector4f diffuseColor, SurgSim::Math::Vector4f specularColor, float shininess, const std::string &diffuseMap="") |
| Create a basic textured material. More...
|
|
std::shared_ptr< Graphics::OsgMaterial > | SurgSim::Blocks::createNormalMappedMaterial (const std::string &name, SurgSim::Math::Vector4f diffuseColor, SurgSim::Math::Vector4f specularColor, float shininess, const std::string &diffuseMap="", const std::string &normalMap="") |
| Create a basic textured material. More...
|
|
void | SurgSim::Blocks::applyMaterials (std::shared_ptr< SurgSim::Framework::Scene > scene, std::string materialFilename, const Materials &materials) |
| Reads a material file, iterates over the components listed up in the material file and applies the materials and the appropriate material properties (if present) to the component, if the component is not found it will be ignored The material file is a yaml file with the following format. More...
|
|
std::shared_ptr< SurgSim::Graphics::ScreenSpaceQuadRepresentation > | SurgSim::Blocks::makeDebugQuad (const std::string &name, std::shared_ptr< SurgSim::Graphics::Texture > texture, double x, double y, double width, double height) |
|
std::shared_ptr< SurgSim::Graphics::RenderPass > | SurgSim::Blocks::createPass (std::unordered_map< std::string, std::shared_ptr< Graphics::OsgMaterial >> materials, const std::string &passName, const std::string &materialName) |
|