diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/PhysicsModules/ubOde/ODEApi.cs (renamed from OpenSim/Region/PhysicsModules/UbitOde/OdeApi.cs) | 41 |
1 files changed, 20 insertions, 21 deletions
diff --git a/OpenSim/Region/PhysicsModules/UbitOde/OdeApi.cs b/OpenSim/Region/PhysicsModules/ubOde/ODEApi.cs index 10d7d50..2ebd964 100644 --- a/OpenSim/Region/PhysicsModules/UbitOde/OdeApi.cs +++ b/OpenSim/Region/PhysicsModules/ubOde/ODEApi.cs | |||
@@ -37,8 +37,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | |||
37 | * | 37 | * |
38 | * changes by opensim team; | 38 | * changes by opensim team; |
39 | * changes by Aurora team http://www.aurora-sim.org/ | 39 | * changes by Aurora team http://www.aurora-sim.org/ |
40 | 40 | * changes by Ubit Umarov | |
41 | * Revision/fixs by Ubit Umarov | ||
42 | */ | 41 | */ |
43 | 42 | ||
44 | using System; | 43 | using System; |
@@ -115,7 +114,7 @@ namespace OdeAPI | |||
115 | HashSpaceClass, | 114 | HashSpaceClass, |
116 | QuadTreeSpaceClass, | 115 | QuadTreeSpaceClass, |
117 | LastSpaceClass = QuadTreeSpaceClass, | 116 | LastSpaceClass = QuadTreeSpaceClass, |
118 | UbitTerrainClass, | 117 | ubtTerrainClass, |
119 | FirstUserClass, | 118 | FirstUserClass, |
120 | LastUserClass = FirstUserClass + MaxUserClasses - 1, | 119 | LastUserClass = FirstUserClass + MaxUserClasses - 1, |
121 | NumClasses, | 120 | NumClasses, |
@@ -208,7 +207,7 @@ namespace OdeAPI | |||
208 | public delegate dReal HeightfieldGetHeight(IntPtr p_user_data, int x, int z); | 207 | public delegate dReal HeightfieldGetHeight(IntPtr p_user_data, int x, int z); |
209 | 208 | ||
210 | [UnmanagedFunctionPointer(CallingConvention.Cdecl)] | 209 | [UnmanagedFunctionPointer(CallingConvention.Cdecl)] |
211 | public delegate dReal UbitTerrainGetHeight(IntPtr p_user_data, int x, int z); | 210 | public delegate dReal ubTerrainGetHeight(IntPtr p_user_data, int x, int z); |
212 | 211 | ||
213 | [UnmanagedFunctionPointer(CallingConvention.Cdecl)] | 212 | [UnmanagedFunctionPointer(CallingConvention.Cdecl)] |
214 | public delegate void NearCallback(IntPtr data, IntPtr geom1, IntPtr geom2); | 213 | public delegate void NearCallback(IntPtr data, IntPtr geom1, IntPtr geom2); |
@@ -735,12 +734,12 @@ namespace OdeAPI | |||
735 | return CreateiHeightfield(space, data, bPlaceable); | 734 | return CreateiHeightfield(space, data, bPlaceable); |
736 | } | 735 | } |
737 | 736 | ||
738 | [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dCreateUbitTerrain"), SuppressUnmanagedCodeSecurity] | 737 | [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dCreateubTerrain"), SuppressUnmanagedCodeSecurity] |
739 | public static extern IntPtr CreateiUbitTerrain(IntPtr space, IntPtr data, int bPlaceable); | 738 | public static extern IntPtr CreateiubTerrain(IntPtr space, IntPtr data, int bPlaceable); |
740 | public static IntPtr CreateUbitTerrain(IntPtr space, IntPtr data, int bPlaceable) | 739 | public static IntPtr CreateubTerrain(IntPtr space, IntPtr data, int bPlaceable) |
741 | { | 740 | { |
742 | NTotalGeoms++; | 741 | NTotalGeoms++; |
743 | return CreateiUbitTerrain(space, data, bPlaceable); | 742 | return CreateiubTerrain(space, data, bPlaceable); |
744 | } | 743 | } |
745 | 744 | ||
746 | 745 | ||
@@ -1022,29 +1021,29 @@ namespace OdeAPI | |||
1022 | 1021 | ||
1023 | 1022 | ||
1024 | [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomUbitTerrainDataBuild"), SuppressUnmanagedCodeSecurity] | 1023 | [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomUbitTerrainDataBuild"), SuppressUnmanagedCodeSecurity] |
1025 | public static extern void GeomUbitTerrainDataBuild(IntPtr d, float[] pHeightData, int bCopyHeightData, | 1024 | public static extern void GeomubTerrainDataBuild(IntPtr d, float[] pHeightData, int bCopyHeightData, |
1026 | dReal sampleSize, int widthSamples, int depthSamples, | 1025 | dReal sampleSize, int widthSamples, int depthSamples, |
1027 | dReal offset, dReal thickness, int bWrap); | 1026 | dReal offset, dReal thickness, int bWrap); |
1028 | 1027 | ||
1029 | [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomUbitTerrainDataBuild"), SuppressUnmanagedCodeSecurity] | 1028 | [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomubTerrainDataBuild"), SuppressUnmanagedCodeSecurity] |
1030 | public static extern void GeomUbitTerrainDataBuild(IntPtr d, IntPtr pHeightData, int bCopyHeightData, | 1029 | public static extern void GeomubTerrainDataBuild(IntPtr d, IntPtr pHeightData, int bCopyHeightData, |
1031 | dReal sampleSize, int widthSamples, int depthSamples, | 1030 | dReal sampleSize, int widthSamples, int depthSamples, |
1032 | dReal thickness, int bWrap); | 1031 | dReal thickness, int bWrap); |
1033 | 1032 | ||
1034 | [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomUbitTerrainDataCreate"), SuppressUnmanagedCodeSecurity] | 1033 | [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomubTerrainDataCreate"), SuppressUnmanagedCodeSecurity] |
1035 | public static extern IntPtr GeomUbitTerrainDataCreate(); | 1034 | public static extern IntPtr GeomubTerrainDataCreate(); |
1036 | 1035 | ||
1037 | [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomUbitTerrainDataDestroy"), SuppressUnmanagedCodeSecurity] | 1036 | [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomubTerrainDataDestroy"), SuppressUnmanagedCodeSecurity] |
1038 | public static extern void GeomUbitTerrainDataDestroy(IntPtr d); | 1037 | public static extern void GeomubTerrainDataDestroy(IntPtr d); |
1039 | 1038 | ||
1040 | [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomUbitTerrainDataSetBounds"), SuppressUnmanagedCodeSecurity] | 1039 | [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomubTerrainDataSetBounds"), SuppressUnmanagedCodeSecurity] |
1041 | public static extern void GeomUbitTerrainDataSetBounds(IntPtr d, dReal minHeight, dReal maxHeight); | 1040 | public static extern void GeomubTerrainDataSetBounds(IntPtr d, dReal minHeight, dReal maxHeight); |
1042 | 1041 | ||
1043 | [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomUbitTerrainGetHeightfieldData"), SuppressUnmanagedCodeSecurity] | 1042 | [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomubTerrainGetHeightfieldData"), SuppressUnmanagedCodeSecurity] |
1044 | public static extern IntPtr GeomUbitTerrainGetHeightfieldData(IntPtr g); | 1043 | public static extern IntPtr GeomubTerrainGetHeightfieldData(IntPtr g); |
1045 | 1044 | ||
1046 | [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomUbitTerrainSetHeightfieldData"), SuppressUnmanagedCodeSecurity] | 1045 | [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomubTerrainSetHeightfieldData"), SuppressUnmanagedCodeSecurity] |
1047 | public static extern void GeomUbitTerrainSetHeightfieldData(IntPtr g, IntPtr d); | 1046 | public static extern void GeomubTerrainSetHeightfieldData(IntPtr g, IntPtr d); |
1048 | 1047 | ||
1049 | 1048 | ||
1050 | [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomIsEnabled"), SuppressUnmanagedCodeSecurity] | 1049 | [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomIsEnabled"), SuppressUnmanagedCodeSecurity] |