- Main Page
- Modules
- Data Structures
- Files

# collision_space.h

    00001 /*************************************************************************
    00002  *                                                                       *
    00003  * Open Dynamics Engine, Copyright (C) 2001-2003 Russell L. Smith.       *
    00004  * All rights reserved.  Email: russ@q12.org   Web: www.q12.org          *
    00005  *                                                                       *
    00006  * This library is free software; you can redistribute it and/or         *
    00007  * modify it under the terms of EITHER:                                  *
    00008  *   (1) The GNU Lesser General Public License as published by the Free  *
    00009  *       Software Foundation; either version 2.1 of the License, or (at  *
    00010  *       your option) any later version. The text of the GNU Lesser      *
    00011  *       General Public License is included with this library in the     *
    00012  *       file LICENSE.TXT.                                               *
    00013  *   (2) The BSD-style license that is included with this library in     *
    00014  *       the file LICENSE-BSD.TXT.                                       *
    00015  *                                                                       *
    00016  * This library is distributed in the hope that it will be useful,       *
    00017  * but WITHOUT ANY WARRANTY; without even the implied warranty of        *
    00018  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the files    *
    00019  * LICENSE.TXT and LICENSE-BSD.TXT for more details.                     *
    00020  *                                                                       *
    00021  *************************************************************************/
    00022
    00023 #ifndef _ODE_COLLISION_SPACE_H_
    00024 #define _ODE_COLLISION_SPACE_H_
    00025
    00026 #include <ode/common.h>
    00027
    00028 #ifdef __cplusplus
    00029 extern "C" {
    00030 #endif
    00031
    00032 struct dContactGeom;
    00033
    00034 typedef void dNearCallback (void *data, dGeomID o1, dGeomID o2);
    00035
    00036
    00037 ODE_API dSpaceID dSimpleSpaceCreate (dSpaceID space);
    00038 ODE_API dSpaceID dHashSpaceCreate (dSpaceID space);
    00039 ODE_API dSpaceID dQuadTreeSpaceCreate (dSpaceID space, dVector3 Center, dVector3 Extents, int Depth);
    00040
    00041 ODE_API void dSpaceDestroy (dSpaceID);
    00042
    00043 ODE_API void dHashSpaceSetLevels (dSpaceID space, int minlevel, int maxlevel);
    00044 ODE_API void dHashSpaceGetLevels (dSpaceID space, int *minlevel, int *maxlevel);
    00045
    00046 ODE_API void dSpaceSetCleanup (dSpaceID space, int mode);
    00047 ODE_API int dSpaceGetCleanup (dSpaceID space);
    00048
    00049 ODE_API void dSpaceAdd (dSpaceID, dGeomID);
    00050 ODE_API void dSpaceRemove (dSpaceID, dGeomID);
    00051 ODE_API int dSpaceQuery (dSpaceID, dGeomID);
    00052 ODE_API void dSpaceClean (dSpaceID);
    00053 ODE_API int dSpaceGetNumGeoms (dSpaceID);
    00054 ODE_API dGeomID dSpaceGetGeom (dSpaceID, int i);
    00055
    00056
    00057 #ifdef __cplusplus
    00058 }
    00059 #endif
    00060
    00061 #endif