- 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
    00049 typedef void dNearCallback (void *data, dGeomID o1, dGeomID o2);
    00050
    00051
    00052 ODE_API dSpaceID dSimpleSpaceCreate (dSpaceID space);
    00053 ODE_API dSpaceID dHashSpaceCreate (dSpaceID space);
    00054 ODE_API dSpaceID dQuadTreeSpaceCreate (dSpaceID space, dVector3 Center, dVector3 Extents, int Depth);
    00055
    00056 ODE_API void dSpaceDestroy (dSpaceID);
    00057
    00058 ODE_API void dHashSpaceSetLevels (dSpaceID space, int minlevel, int maxlevel);
    00059 ODE_API void dHashSpaceGetLevels (dSpaceID space, int *minlevel, int *maxlevel);
    00060
    00061 ODE_API void dSpaceSetCleanup (dSpaceID space, int mode);
    00062 ODE_API int dSpaceGetCleanup (dSpaceID space);
    00063
    00064 ODE_API void dSpaceAdd (dSpaceID, dGeomID);
    00065 ODE_API void dSpaceRemove (dSpaceID, dGeomID);
    00066 ODE_API int dSpaceQuery (dSpaceID, dGeomID);
    00067 ODE_API void dSpaceClean (dSpaceID);
    00068 ODE_API int dSpaceGetNumGeoms (dSpaceID);
    00069 ODE_API dGeomID dSpaceGetGeom (dSpaceID, int i);
    00070
    00071
    00072 #ifdef __cplusplus
    00073 }
    00074 #endif
    00075
    00076 #endif