19 #ifndef SURGSIM_GRAPHICS_OSGUNIFORMGLSLTYPES_H 20 #define SURGSIM_GRAPHICS_OSGUNIFORMGLSLTYPES_H 36 class OsgTextureCubeMap;
37 class OsgTextureRectangle;
47 return "__undefined__";
51 inline const std::string getGlslType<float>()
57 inline const std::string getGlslType<double>()
62 inline const std::string getGlslType<int>()
67 inline const std::string getGlslType<unsigned int>()
72 inline const std::string getGlslType<bool>()
78 inline const std::string getGlslType<SurgSim::Math::Vector2f>()
83 inline const std::string getGlslType<SurgSim::Math::Vector3f>()
88 inline const std::string getGlslType<SurgSim::Math::Vector4f>()
94 inline const std::string getGlslType<SurgSim::Math::Vector2d>()
99 inline const std::string getGlslType<SurgSim::Math::Vector3d>()
104 inline const std::string getGlslType<SurgSim::Math::Vector4d>()
110 inline const std::string getGlslType<SurgSim::Math::Matrix22f>()
115 inline const std::string getGlslType<SurgSim::Math::Matrix33f>()
120 inline const std::string getGlslType<SurgSim::Math::Matrix44f>()
126 inline const std::string getGlslType<SurgSim::Math::Matrix22d>()
131 inline const std::string getGlslType<SurgSim::Math::Matrix33d>()
136 inline const std::string getGlslType<SurgSim::Math::Matrix44d>()
144 inline const std::string getGlslType<std::shared_ptr<OsgTexture1d>>()
152 inline const std::string getGlslType<std::shared_ptr<OsgTexture2d>>()
160 inline const std::string getGlslType<std::shared_ptr<OsgTexture3d>>()
168 inline const std::string getGlslType<std::shared_ptr<OsgTextureCubeMap>>()
170 return "samplerCube";
174 inline const std::string getGlslType<std::shared_ptr<OsgTextureRectangle>>()
176 return "sampler2DRect";
183 #endif // SURGSIM_GRAPHICS_OSGUNIFORMGLSLTYPES_H Wraps glewInit() to separate the glew opengl definitions from the osg opengl definitions only imgui n...
Definition: AddRandomSphereBehavior.cpp:36
Definitions of small fixed-size square matrix types.
Definitions of small fixed-size vector types.