GraphicsUtilities.cpp File Reference
`#include "SurgSim/Blocks/GraphicsUtilities.h"`
`#include "SurgSim/Framework/ApplicationData.h"`
`#include "SurgSim/Framework/BasicSceneElement.h"`
`#include "SurgSim/Framework/PoseComponent.h"`
`#include "SurgSim/Framework/Runtime.h"`
`#include "SurgSim/Framework/Scene.h"`
`#include "SurgSim/Framework/SceneElement.h"`
`#include "SurgSim/Framework/TransferPropertiesBehavior.h"`
`#include "SurgSim/Graphics/OsgRepresentation.h"`
`#include "SurgSim/Graphics/OsgMaterial.h"`
`#include "SurgSim/Graphics/OsgRenderTarget.h"`
`#include "SurgSim/Graphics/OsgScreenSpaceQuadRepresentation.h"`
`#include "SurgSim/Graphics/OsgTexture2d.h"`
`#include "SurgSim/Graphics/OsgUniform.h"`
`#include "SurgSim/Graphics/OsgCamera.h"`
`#include "SurgSim/Graphics/OsgTextureUniform.h"`
`#include "SurgSim/Graphics/OsgProgram.h"`
`#include "SurgSim/Graphics/OsgUniformFactory.h"`
`#include "SurgSim/Graphics/RenderPass.h"`
`#include "osg/PolygonMode"`

## Namespaces

| SurgSim
| SurgSim::Blocks

## Functions

void | SurgSim::Blocks::enable2DTexture (std::shared_ptr< Graphics::OsgMaterial > material, const std::string &uniform, int unit, const std::string &filename, bool repeat)
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)