|
opensurgsim
|
Functions to get the OSG uniform type enum for a given type. More...
#include <memory>#include "SurgSim/Math/Matrix.h"#include "SurgSim/Math/Vector.h"#include <osg/Uniform>Go to the source code of this file.
Namespaces | |
| SurgSim | |
| Wraps glewInit() to separate the glew opengl definitions from the osg opengl definitions only imgui needs glew but we need to call glewInit() from a osg callback, using this call we avoid getting warnings about redefinitions. | |
Functions | |
| template<class T > | |
| osg::Uniform::Type | SurgSim::Graphics::getOsgUniformType () |
| Returns the OSG uniform type enum value for the template parameter type. More... | |
| template<> | |
| osg::Uniform::Type | SurgSim::Graphics::getOsgUniformType< float > () |
| template<> | |
| osg::Uniform::Type | SurgSim::Graphics::getOsgUniformType< double > () |
| template<> | |
| osg::Uniform::Type | SurgSim::Graphics::getOsgUniformType< int > () |
| template<> | |
| osg::Uniform::Type | SurgSim::Graphics::getOsgUniformType< unsigned int > () |
| template<> | |
| osg::Uniform::Type | SurgSim::Graphics::getOsgUniformType< bool > () |
| template<> | |
| osg::Uniform::Type | SurgSim::Graphics::getOsgUniformType< SurgSim::Math::Vector2f > () |
| template<> | |
| osg::Uniform::Type | SurgSim::Graphics::getOsgUniformType< SurgSim::Math::Vector3f > () |
| template<> | |
| osg::Uniform::Type | SurgSim::Graphics::getOsgUniformType< SurgSim::Math::Vector4f > () |
| template<> | |
| osg::Uniform::Type | SurgSim::Graphics::getOsgUniformType< SurgSim::Math::Vector2d > () |
| template<> | |
| osg::Uniform::Type | SurgSim::Graphics::getOsgUniformType< SurgSim::Math::Vector3d > () |
| template<> | |
| osg::Uniform::Type | SurgSim::Graphics::getOsgUniformType< SurgSim::Math::Vector4d > () |
| template<> | |
| osg::Uniform::Type | SurgSim::Graphics::getOsgUniformType< SurgSim::Math::Matrix22f > () |
| template<> | |
| osg::Uniform::Type | SurgSim::Graphics::getOsgUniformType< SurgSim::Math::Matrix33f > () |
| template<> | |
| osg::Uniform::Type | SurgSim::Graphics::getOsgUniformType< SurgSim::Math::Matrix44f > () |
| template<> | |
| osg::Uniform::Type | SurgSim::Graphics::getOsgUniformType< SurgSim::Math::Matrix22d > () |
| template<> | |
| osg::Uniform::Type | SurgSim::Graphics::getOsgUniformType< SurgSim::Math::Matrix33d > () |
| template<> | |
| osg::Uniform::Type | SurgSim::Graphics::getOsgUniformType< SurgSim::Math::Matrix44d > () |
| template<> | |
| osg::Uniform::Type | SurgSim::Graphics::getOsgUniformType< std::shared_ptr< OsgTexture1d > > () |
| template<> | |
| osg::Uniform::Type | SurgSim::Graphics::getOsgUniformType< std::shared_ptr< OsgTexture2d > > () |
| template<> | |
| osg::Uniform::Type | SurgSim::Graphics::getOsgUniformType< std::shared_ptr< OsgTexture3d > > () |
| template<> | |
| osg::Uniform::Type | SurgSim::Graphics::getOsgUniformType< std::shared_ptr< OsgTextureCubeMap > > () |
| template<> | |
| osg::Uniform::Type | SurgSim::Graphics::getOsgUniformType< std::shared_ptr< OsgTextureRectangle > > () |
Functions to get the OSG uniform type enum for a given type.
|
inline |
Returns the OSG uniform type enum value for the template parameter type.
This template function is specialized to match each type with an enum value. Any types for which the function is not specialized will return osg::Uniform::UNDEFINED.
| T | Data type |
1.8.12