spatialindex.monkey2 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. Namespace chipmunk
  2. Extern
  3. '***** File: Chipmunk7/include/chipmunk/cpSpatialIndex.h *****
  4. 'Note: raw types/functions only - haven't had a good look at this yet.
  5. Alias cpSpatialIndexBBFunc:cpBB( Void Ptr )
  6. Alias cpSpatialIndexIteratorFunc:Void( Void Ptr, Void Ptr )
  7. Alias cpSpatialIndexQueryFunc:cpCollisionID( Void Ptr, Void Ptr, cpCollisionID, Void Ptr )
  8. Alias cpSpatialIndexSegmentQueryFunc:cpFloat( Void Ptr, Void Ptr, Void Ptr )
  9. Struct cpSpatialIndex
  10. Field klass:cpSpatialIndexClass Ptr
  11. Field bbfunc:cpSpatialIndexBBFunc
  12. Field staticIndex:cpSpatialIndex Ptr
  13. Field dynamicIndex:cpSpatialIndex Ptr
  14. End
  15. Function cpSpaceHashAlloc:cpSpaceHash Ptr( )
  16. Function cpSpaceHashInit:cpSpatialIndex Ptr( hash:cpSpaceHash Ptr, celldim:cpFloat, numcells:Int, bbfunc:cpSpatialIndexBBFunc, staticIndex:cpSpatialIndex Ptr )
  17. Function cpSpaceHashNew:cpSpatialIndex Ptr( celldim:cpFloat, cells:Int, bbfunc:cpSpatialIndexBBFunc, staticIndex:cpSpatialIndex Ptr )
  18. Function cpSpaceHashResize:Void( hash:cpSpaceHash Ptr, celldim:cpFloat, numcells:Int )
  19. Function cpBBTreeAlloc:cpBBTree Ptr( )
  20. Function cpBBTreeInit:cpSpatialIndex Ptr( tree:cpBBTree Ptr, bbfunc:cpSpatialIndexBBFunc, staticIndex:cpSpatialIndex Ptr )
  21. Function cpBBTreeNew:cpSpatialIndex Ptr( bbfunc:cpSpatialIndexBBFunc, staticIndex:cpSpatialIndex Ptr )
  22. Function cpBBTreeOptimize:Void( index:cpSpatialIndex Ptr )
  23. Alias cpBBTreeVelocityFunc:cpVect( Void Ptr )
  24. Function cpBBTreeSetVelocityFunc:Void( index:cpSpatialIndex Ptr, func:cpBBTreeVelocityFunc )
  25. Function cpSweep1DAlloc:cpSweep1D Ptr( )
  26. Function cpSweep1DInit:cpSpatialIndex Ptr( sweep:cpSweep1D Ptr, bbfunc:cpSpatialIndexBBFunc, staticIndex:cpSpatialIndex Ptr )
  27. Function cpSweep1DNew:cpSpatialIndex Ptr( bbfunc:cpSpatialIndexBBFunc, staticIndex:cpSpatialIndex Ptr )
  28. Alias cpSpatialIndexDestroyImpl:Void( cpSpatialIndex Ptr )
  29. Alias cpSpatialIndexCountImpl:Int( cpSpatialIndex Ptr )
  30. Alias cpSpatialIndexEachImpl:Void( cpSpatialIndex Ptr, cpSpatialIndexIteratorFunc, Void Ptr )
  31. Alias cpSpatialIndexContainsImpl:cpBool( cpSpatialIndex Ptr, Void Ptr, cpHashValue )
  32. Alias cpSpatialIndexInsertImpl:Void( cpSpatialIndex Ptr, Void Ptr, cpHashValue )
  33. Alias cpSpatialIndexRemoveImpl:Void( cpSpatialIndex Ptr, Void Ptr, cpHashValue )
  34. Alias cpSpatialIndexReindexImpl:Void( cpSpatialIndex Ptr )
  35. Alias cpSpatialIndexReindexObjectImpl:Void( cpSpatialIndex Ptr, Void Ptr, cpHashValue )
  36. Alias cpSpatialIndexReindexQueryImpl:Void( cpSpatialIndex Ptr, cpSpatialIndexQueryFunc, Void Ptr )
  37. Alias cpSpatialIndexQueryImpl:Void( cpSpatialIndex Ptr, Void Ptr, cpBB, cpSpatialIndexQueryFunc, Void Ptr )
  38. Alias cpSpatialIndexSegmentQueryImpl:Void( cpSpatialIndex Ptr, Void Ptr, cpVect, cpVect, cpFloat, cpSpatialIndexSegmentQueryFunc, Void Ptr )
  39. Struct cpSpatialIndexClass
  40. Field destroy:cpSpatialIndexDestroyImpl
  41. Field count:cpSpatialIndexCountImpl
  42. Field each:cpSpatialIndexEachImpl
  43. Field contains:cpSpatialIndexContainsImpl
  44. Field insert:cpSpatialIndexInsertImpl
  45. Field remove:cpSpatialIndexRemoveImpl
  46. Field reindex:cpSpatialIndexReindexImpl
  47. Field reindexObject:cpSpatialIndexReindexObjectImpl
  48. Field reindexQuery:cpSpatialIndexReindexQueryImpl
  49. Field query:cpSpatialIndexQueryImpl
  50. Field segmentQuery:cpSpatialIndexSegmentQueryImpl
  51. End
  52. Function cpSpatialIndexFree:Void( index:cpSpatialIndex Ptr )
  53. Function cpSpatialIndexCollideStatic:Void( dynamicIndex:cpSpatialIndex Ptr, staticIndex:cpSpatialIndex Ptr, func:cpSpatialIndexQueryFunc, data:Void Ptr )
  54. Function cpSpatialIndexDestroy:Void( index:cpSpatialIndex Ptr )
  55. Function cpSpatialIndexCount:Int( index:cpSpatialIndex Ptr )
  56. Function cpSpatialIndexEach:Void( index:cpSpatialIndex Ptr, func:cpSpatialIndexIteratorFunc, data:Void Ptr )
  57. Function cpSpatialIndexContains:cpBool( index:cpSpatialIndex Ptr, obj:Void Ptr, hashid:cpHashValue )
  58. Function cpSpatialIndexInsert:Void( index:cpSpatialIndex Ptr, obj:Void Ptr, hashid:cpHashValue )
  59. Function cpSpatialIndexRemove:Void( index:cpSpatialIndex Ptr, obj:Void Ptr, hashid:cpHashValue )
  60. Function cpSpatialIndexReindex:Void( index:cpSpatialIndex Ptr )
  61. Function cpSpatialIndexReindexObject:Void( index:cpSpatialIndex Ptr, obj:Void Ptr, hashid:cpHashValue )
  62. Function cpSpatialIndexQuery:Void( index:cpSpatialIndex Ptr, obj:Void Ptr, bb:cpBB, func:cpSpatialIndexQueryFunc, data:Void Ptr )
  63. Function cpSpatialIndexSegmentQuery:Void( index:cpSpatialIndex Ptr, obj:Void Ptr, a:cpVect, b:cpVect, t_exit:cpFloat, func:cpSpatialIndexSegmentQueryFunc, data:Void Ptr )
  64. Function cpSpatialIndexReindexQuery:Void( index:cpSpatialIndex Ptr, func:cpSpatialIndexQueryFunc, data:Void Ptr )
  65. Struct cpSpaceHash
  66. End
  67. Struct cpBBTree
  68. End
  69. Struct cpSweep1D
  70. End