Privacy
An open-source, flexible 3D physical simulation framework
snmesh.h
Go to the documentation of this file.
1
/*
2
* Copyright 2011, 2012, 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_INTERFACES_SNMESH_H
22
#define MARS_INTERFACES_SNMESH_H
23
24
#include "
MARSDefs.h
"
25
#include <mars/utils/Color.h>
26
27
namespace
mars
{
28
29
namespace
interfaces {
30
31
//mesh structure
32
struct
snmesh
{
33
void
setZero
(){
34
vertices
= 0;
35
normals
= 0;
36
color
= 0;
37
tCoords
= 0;
38
indices
= 0;
39
indexcount
= 0;
40
vertexcount
= 0;
41
}
42
43
snmesh
(){
44
setZero
();
45
}
46
47
mydVector3
*
vertices
;
48
mydVector3
*
normals
;
49
utils::Color
*
color
;
50
mydVector2
*
tCoords
;
51
52
int
*
indices
;
53
int
indexcount
;
54
int
vertexcount
;
55
56
};
// end of struct snmesh
57
58
}
// end of namespace interfaces
59
60
}
// end of namespace mars
61
62
#endif
/* MARS_INTERFACES_SNMESH_H */
mars::interfaces::mydVector2
sReal mydVector2[4]
Definition:
MARSDefs.h:51
mars::interfaces::snmesh::setZero
void setZero()
Definition:
snmesh.h:33
mars::interfaces::snmesh::tCoords
mydVector2 * tCoords
Definition:
snmesh.h:50
mars::interfaces::snmesh::color
utils::Color * color
Definition:
snmesh.h:49
mars::interfaces::snmesh::indices
int * indices
Definition:
snmesh.h:52
mars::interfaces::snmesh::normals
mydVector3 * normals
Definition:
snmesh.h:48
mars
Copyright 2012, DFKI GmbH Robotics Innovation Center.
Definition:
GraphicsTimer.cpp:25
mars::interfaces::snmesh::vertexcount
int vertexcount
Definition:
snmesh.h:54
mars::interfaces::snmesh::indexcount
int indexcount
Definition:
snmesh.h:53
mars::interfaces::snmesh
Definition:
snmesh.h:32
mars::utils::Color
Definition:
Color.h:29
mars::interfaces::snmesh::snmesh
snmesh()
Definition:
snmesh.h:43
mars::interfaces::mydVector3
sReal mydVector3[4]
Definition:
MARSDefs.h:50
MARSDefs.h
mars::interfaces::snmesh::vertices
mydVector3 * vertices
Definition:
snmesh.h:47
interfaces
src
snmesh.h
Generated on Fri May 25 2018 11:46:21 by
1.8.13