iCub-main
xloader.h
Go to the documentation of this file.
1 // -*- mode:C++; tab-width:4; c-basic-offset:4; indent-tabs-mode:nil -*-
2 
3 /*
4 * Copyright (C) 2010 RobotCub Consortium, European Commission FP6 Project IST-004370
5 * Author: Vadim Tikhanoff
6 * This code was written starting from tutorial code by Kosei Demura
7 * email: vadim.tikhanoff@iit.it
8 * website: www.robotcub.org
9 * Permission is granted to copy, distribute, and/or modify this program
10 * under the terms of the GNU General Public License, version 2 or any
11 * later version published by the Free Software Foundation.
12 *
13 * A copy of the license can be found at
14 * http://www.robotcub.org/icub/license/gpl.txt
15 *
16 * This program is distributed in the hope that it will be useful, but
17 * WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
19 * Public License for more details
20 */
21 
22 
30 #ifndef XLOADER_H
31 #define XLOADER_H
32 #include <ode/ode.h>
33 
34 /*typedef struct dTRIMESH {
35  float *Vertices;
36  int VertexCount;
37  int *Indices;
38  int IndexCount;
39 } dTriMesh;
40 
41 void dLoadMeshFromX( const char* filename, dTriMesh* trimesh );
42 */
43 
44 struct dxTriMeshX {
45  float *Vertices;
47  int *Indices;
49  float *MeshCoord;
51  float *NormCoord;
52  int NormCount;
53 };
54 
55 typedef struct dxTriMeshX *dTriMeshX;
56 
57 dTriMeshX dLoadMeshFromX(const char* FileName);
58 
59 void dTriMeshXDestroy(dTriMeshX TriMesh);
60 
61 
62 #endif
dxTriMeshX::Vertices
float * Vertices
Definition: xloader.h:45
dxTriMeshX::Indices
int * Indices
Definition: xloader.h:47
dxTriMeshX::IndexCount
int IndexCount
Definition: xloader.h:48
dTriMeshXDestroy
void dTriMeshXDestroy(dTriMeshX TriMesh)
Definition: xloader.cpp:205
dxTriMeshX::MeshCoord
float * MeshCoord
Definition: xloader.h:49
dTriMeshX
struct dxTriMeshX * dTriMeshX
Definition: xloader.h:55
dxTriMeshX::NormCoord
float * NormCoord
Definition: xloader.h:51
dxTriMeshX::MeshCoordCount
int MeshCoordCount
Definition: xloader.h:50
dxTriMeshX
Definition: xloader.h:44
dxTriMeshX::VertexCount
int VertexCount
Definition: xloader.h:46
dxTriMeshX::NormCount
int NormCount
Definition: xloader.h:52
dLoadMeshFromX
dTriMeshX dLoadMeshFromX(const char *FileName)
Definition: xloader.cpp:39