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
configmaps::ConfigMap
Definition:
ConfigMap.hpp:47
osg_material_manager::YamlShader::source
std::string source
Definition:
yaml-shader.h:37
osg_material_manager::YamlShader::code
std::string code() const
Definition:
yaml-shader.cpp:224
osg_material_manager::ShaderFunc::name
std::string name
Definition:
shader-function.h:172
osg_material_manager
Definition:
MaterialNode.cpp:41
shader-function.h
osg_material_manager::ShaderFunc
Definition:
shader-function.h:35
osg_material_manager::YamlShader::YamlShader
YamlShader(std::string name, std::vector< std::string > &args, configmaps::ConfigMap &map, std::string resPath)
Definition:
yaml-shader.cpp:31
osg_material_manager::YamlShader
Definition:
yaml-shader.h:32
common
graphics
osg_material_manager
src
shader
yaml-shader.h
Generated on Fri May 25 2018 11:46:19 by
1.8.13