diff options
author | UbitUmarov | 2015-10-22 16:20:19 +0100 |
---|---|---|
committer | UbitUmarov | 2015-10-22 16:20:19 +0100 |
commit | 7aaa84515fef4ba6138cb568a08b9b02502142f6 (patch) | |
tree | d6b2420fb0b4cc325f4974c660d25c4e215be2be /OpenSim/Region/PhysicsModules/ubOde/ODEApi.cs | |
parent | Mark XAssetService obsolete and warn users. (diff) | |
download | opensim-SC-7aaa84515fef4ba6138cb568a08b9b02502142f6.zip opensim-SC-7aaa84515fef4ba6138cb568a08b9b02502142f6.tar.gz opensim-SC-7aaa84515fef4ba6138cb568a08b9b02502142f6.tar.bz2 opensim-SC-7aaa84515fef4ba6138cb568a08b9b02502142f6.tar.xz |
rename terrain for opensim and respective configuration flag that a future costumized ODE library may have
Diffstat (limited to 'OpenSim/Region/PhysicsModules/ubOde/ODEApi.cs')
-rw-r--r-- | OpenSim/Region/PhysicsModules/ubOde/ODEApi.cs | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/OpenSim/Region/PhysicsModules/ubOde/ODEApi.cs b/OpenSim/Region/PhysicsModules/ubOde/ODEApi.cs index 2ebd964..daf3af1 100644 --- a/OpenSim/Region/PhysicsModules/ubOde/ODEApi.cs +++ b/OpenSim/Region/PhysicsModules/ubOde/ODEApi.cs | |||
@@ -207,7 +207,7 @@ namespace OdeAPI | |||
207 | 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); |
208 | 208 | ||
209 | [UnmanagedFunctionPointer(CallingConvention.Cdecl)] | 209 | [UnmanagedFunctionPointer(CallingConvention.Cdecl)] |
210 | public delegate dReal ubTerrainGetHeight(IntPtr p_user_data, int x, int z); | 210 | public delegate dReal OSTerrainGetHeight(IntPtr p_user_data, int x, int z); |
211 | 211 | ||
212 | [UnmanagedFunctionPointer(CallingConvention.Cdecl)] | 212 | [UnmanagedFunctionPointer(CallingConvention.Cdecl)] |
213 | public delegate void NearCallback(IntPtr data, IntPtr geom1, IntPtr geom2); | 213 | public delegate void NearCallback(IntPtr data, IntPtr geom1, IntPtr geom2); |
@@ -734,12 +734,12 @@ namespace OdeAPI | |||
734 | return CreateiHeightfield(space, data, bPlaceable); | 734 | return CreateiHeightfield(space, data, bPlaceable); |
735 | } | 735 | } |
736 | 736 | ||
737 | [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dCreateubTerrain"), SuppressUnmanagedCodeSecurity] | 737 | [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dCreateOSTerrain"), SuppressUnmanagedCodeSecurity] |
738 | public static extern IntPtr CreateiubTerrain(IntPtr space, IntPtr data, int bPlaceable); | 738 | public static extern IntPtr CreateiOSTerrain(IntPtr space, IntPtr data, int bPlaceable); |
739 | public static IntPtr CreateubTerrain(IntPtr space, IntPtr data, int bPlaceable) | 739 | public static IntPtr CreateOSTerrain(IntPtr space, IntPtr data, int bPlaceable) |
740 | { | 740 | { |
741 | NTotalGeoms++; | 741 | NTotalGeoms++; |
742 | return CreateiubTerrain(space, data, bPlaceable); | 742 | return CreateiOSTerrain(space, data, bPlaceable); |
743 | } | 743 | } |
744 | 744 | ||
745 | 745 | ||
@@ -1021,29 +1021,29 @@ namespace OdeAPI | |||
1021 | 1021 | ||
1022 | 1022 | ||
1023 | [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomUbitTerrainDataBuild"), SuppressUnmanagedCodeSecurity] | 1023 | [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomUbitTerrainDataBuild"), SuppressUnmanagedCodeSecurity] |
1024 | public static extern void GeomubTerrainDataBuild(IntPtr d, float[] pHeightData, int bCopyHeightData, | 1024 | public static extern void GeomOSTerrainDataBuild(IntPtr d, float[] pHeightData, int bCopyHeightData, |
1025 | dReal sampleSize, int widthSamples, int depthSamples, | 1025 | dReal sampleSize, int widthSamples, int depthSamples, |
1026 | dReal offset, dReal thickness, int bWrap); | 1026 | dReal offset, dReal thickness, int bWrap); |
1027 | 1027 | ||
1028 | [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomubTerrainDataBuild"), SuppressUnmanagedCodeSecurity] | 1028 | [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomOSTerrainDataBuild"), SuppressUnmanagedCodeSecurity] |
1029 | public static extern void GeomubTerrainDataBuild(IntPtr d, IntPtr pHeightData, int bCopyHeightData, | 1029 | public static extern void GeomOSTerrainDataBuild(IntPtr d, IntPtr pHeightData, int bCopyHeightData, |
1030 | dReal sampleSize, int widthSamples, int depthSamples, | 1030 | dReal sampleSize, int widthSamples, int depthSamples, |
1031 | dReal thickness, int bWrap); | 1031 | dReal thickness, int bWrap); |
1032 | 1032 | ||
1033 | [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomubTerrainDataCreate"), SuppressUnmanagedCodeSecurity] | 1033 | [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomOSTerrainDataCreate"), SuppressUnmanagedCodeSecurity] |
1034 | public static extern IntPtr GeomubTerrainDataCreate(); | 1034 | public static extern IntPtr GeomOSTerrainDataCreate(); |
1035 | 1035 | ||
1036 | [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomubTerrainDataDestroy"), SuppressUnmanagedCodeSecurity] | 1036 | [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomOSTerrainDataDestroy"), SuppressUnmanagedCodeSecurity] |
1037 | public static extern void GeomubTerrainDataDestroy(IntPtr d); | 1037 | public static extern void GeomOSTerrainDataDestroy(IntPtr d); |
1038 | 1038 | ||
1039 | [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomubTerrainDataSetBounds"), SuppressUnmanagedCodeSecurity] | 1039 | [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomOSTerrainDataSetBounds"), SuppressUnmanagedCodeSecurity] |
1040 | public static extern void GeomubTerrainDataSetBounds(IntPtr d, dReal minHeight, dReal maxHeight); | 1040 | public static extern void GeomOSTerrainDataSetBounds(IntPtr d, dReal minHeight, dReal maxHeight); |
1041 | 1041 | ||
1042 | [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomubTerrainGetHeightfieldData"), SuppressUnmanagedCodeSecurity] | 1042 | [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomOSTerrainGetHeightfieldData"), SuppressUnmanagedCodeSecurity] |
1043 | public static extern IntPtr GeomubTerrainGetHeightfieldData(IntPtr g); | 1043 | public static extern IntPtr GeomOSTerrainGetHeightfieldData(IntPtr g); |
1044 | 1044 | ||
1045 | [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomubTerrainSetHeightfieldData"), SuppressUnmanagedCodeSecurity] | 1045 | [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomOSTerrainSetHeightfieldData"), SuppressUnmanagedCodeSecurity] |
1046 | public static extern void GeomubTerrainSetHeightfieldData(IntPtr g, IntPtr d); | 1046 | public static extern void GeomOSTerrainSetHeightfieldData(IntPtr g, IntPtr d); |
1047 | 1047 | ||
1048 | 1048 | ||
1049 | [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomIsEnabled"), SuppressUnmanagedCodeSecurity] | 1049 | [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomIsEnabled"), SuppressUnmanagedCodeSecurity] |