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
bool operator<(const GLSLExport &a, const GLSLExport &b)
u_int8_t b
Definition: CameraSensor.h:43
ostream & operator<<(ostream &os, const GLSLExport &a)
u_int8_t a
Definition: CameraSensor.h:44