Privacy
An open-source, flexible 3D physical simulation framework
shader-types.cpp
Go to the documentation of this file.
1
/*
2
* Copyright 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
22
#include "
shader-types.h
"
23
24
namespace
osg_material_manager
{
25
26
using namespace
std
;
27
28
ostream&
operator<<
(ostream& os,
const
GLSLExport
&
a
) {
29
return
os << a.
name
<<
" = "
<< a.
value
;
30
}
31
bool
operator<
(
const
GLSLExport
&
a
,
const
GLSLExport
&
b
) {
32
return
a.
name
< b.
name
;
33
}
34
35
ostream&
operator<<
(ostream& os,
const
GLSLAttribute
&
a
) {
36
return
os << a.
type
<<
" "
<< a.
name
;
37
}
38
bool
operator<
(
const
GLSLAttribute
&
a
,
const
GLSLAttribute
&
b
) {
39
return
a.
name
< b.
name
;
40
}
41
42
ostream&
operator<<
(ostream& os,
const
GLSLVariable
&
a
) {
43
return
os << a.
type
<<
" "
<< a.
name
<<
" = "
<< a.
value
;
44
}
45
bool
operator<
(
const
GLSLVariable
&
a
,
const
GLSLVariable
&
b
) {
46
return
a.
name
< b.
name
;
47
}
48
49
}
// end of namespace osg_material_manager
osg_material_manager::GLSLExport::name
std::string name
Definition:
shader-types.h:41
osg_material_manager::operator<
bool operator<(const GLSLExport &a, const GLSLExport &b)
Definition:
shader-types.cpp:31
b
u_int8_t b
Definition:
CameraSensor.h:43
osg_material_manager::GLSLVariable
Definition:
shader-types.h:45
osg_material_manager::GLSLExport
Definition:
shader-types.h:40
osg_material_manager::operator<<
ostream & operator<<(ostream &os, const GLSLExport &a)
Definition:
shader-types.cpp:28
osg_material_manager::GLSLVariable::name
std::string name
Definition:
shader-types.h:47
std
osg_material_manager::GLSLVariable::value
std::string value
Definition:
shader-types.h:48
shader-types.h
a
u_int8_t a
Definition:
CameraSensor.h:44
osg_material_manager
Definition:
MaterialNode.cpp:41
osg_material_manager::GLSLExport::value
std::string value
Definition:
shader-types.h:42
osg_material_manager::GLSLVariable::type
std::string type
Definition:
shader-types.h:46
osg_material_manager::GLSLAttribute
Definition:
shader-types.h:31
osg_material_manager::GLSLAttribute::name
std::string name
Definition:
shader-types.h:33
osg_material_manager::GLSLAttribute::type
std::string type
Definition:
shader-types.h:32
common
graphics
osg_material_manager
src
shader
shader-types.cpp
Generated on Fri May 25 2018 11:46:19 by
1.8.13