source: OGRE/trunk/ogre_dependencies/Dependencies/include/ode/collision_space.h @ 692

Revision 692, 2.5 KB checked in by mattausch, 19 years ago (diff)

adding ogre 1.2 and dependencies

Line 
1/*************************************************************************
2 *                                                                       *
3 * Open Dynamics Engine, Copyright (C) 2001-2003 Russell L. Smith.       *
4 * All rights reserved.  Email: russ@q12.org   Web: www.q12.org          *
5 *                                                                       *
6 * This library is free software; you can redistribute it and/or         *
7 * modify it under the terms of EITHER:                                  *
8 *   (1) The GNU Lesser General Public License as published by the Free  *
9 *       Software Foundation; either version 2.1 of the License, or (at  *
10 *       your option) any later version. The text of the GNU Lesser      *
11 *       General Public License is included with this library in the     *
12 *       file LICENSE.TXT.                                               *
13 *   (2) The BSD-style license that is included with this library in     *
14 *       the file LICENSE-BSD.TXT.                                       *
15 *                                                                       *
16 * This library is distributed in the hope that it will be useful,       *
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of        *
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the files    *
19 * LICENSE.TXT and LICENSE-BSD.TXT for more details.                     *
20 *                                                                       *
21 *************************************************************************/
22
23#ifndef _ODE_COLLISION_SPACE_H_
24#define _ODE_COLLISION_SPACE_H_
25
26#include <ode/common.h>
27
28#ifdef __cplusplus
29extern "C" {
30#endif
31
32struct dContactGeom;
33
34typedef void dNearCallback (void *data, dGeomID o1, dGeomID o2);
35
36
37dSpaceID dSimpleSpaceCreate (dSpaceID space);
38dSpaceID dHashSpaceCreate (dSpaceID space);
39dSpaceID dQuadTreeSpaceCreate (dSpaceID space, dVector3 Center, dVector3 Extents, int Depth);
40
41void dSpaceDestroy (dSpaceID);
42
43void dHashSpaceSetLevels (dSpaceID space, int minlevel, int maxlevel);
44void dHashSpaceGetLevels (dSpaceID space, int *minlevel, int *maxlevel);
45
46void dSpaceSetCleanup (dSpaceID space, int mode);
47int dSpaceGetCleanup (dSpaceID space);
48
49void dSpaceAdd (dSpaceID, dGeomID);
50void dSpaceRemove (dSpaceID, dGeomID);
51int dSpaceQuery (dSpaceID, dGeomID);
52void dSpaceClean (dSpaceID);
53int dSpaceGetNumGeoms (dSpaceID);
54dGeomID dSpaceGetGeom (dSpaceID, int i);
55
56
57#ifdef __cplusplus
58}
59#endif
60
61#endif
Note: See TracBrowser for help on using the repository browser.