Privacy
An open-source, flexible 3D physical simulation framework
yaml-shader.h
Go to the documentation of this file.
1 /*
2  * Copyright 2011, 2016, DFKI GmbH Robotics Innovation Center
3  *
4  * This file is part of the MARS simulation framework.
5  *
6  * MARS is free software: you can redistribute it and/or modify
7  * it under the terms of the GNU Lesser General Public License
8  * as published by the Free Software Foundation, either version 3
9  * of the License, or (at your option) any later version.
10  *
11  * MARS is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public License
17  * along with MARS. If not, see <http://www.gnu.org/licenses/>.
18  *
19  */
20 
21 #ifndef MARS_GRAPHICS_YAML_SHADER_H
22 #define MARS_GRAPHICS_YAML_SHADER_H
23 
24 #include "shader-function.h"
25 #include "configmaps/ConfigData.h"
26 
27 #include <vector>
28 #include <string>
29 
30 namespace osg_material_manager {
31 
32  class YamlShader : public ShaderFunc {
33  public:
34  YamlShader(std::string name, std::vector<std::string> &args, configmaps::ConfigMap &map, std::string resPath);
35  std::string code() const;
36  private:
37  std::string source;
38  };
39 } // end of namespace osg_material_manager
40 
41 #endif //MARS_GRAPHICS_YAML_SHADER_H
YamlShader(std::string name, std::vector< std::string > &args, configmaps::ConfigMap &map, std::string resPath)
Definition: yaml-shader.cpp:31