Exemplo n.º 1
0
 public static void DestroyProbe(ProbeRef inProbe)
 {
     IL.DeclareLocals(false);
     Guard.NotNull(DestroyProbePtr);
     IL.Push(inProbe);
     IL.Push(DestroyProbePtr);
     IL.Emit.Calli(new StandAloneMethodSig(CallingConvention.Cdecl, typeof(void), typeof(ProbeRef)));
 }
Exemplo n.º 2
0
        public static unsafe ProbeResult ProbeTerrainXYZ(ProbeRef inProbe, float inX, float inY, float inZ, ProbeInfo *outInfo)
        {
            IL.DeclareLocals(false);
            Guard.NotNull(ProbeTerrainXYZPtr);
            ProbeResult result;

            IL.Push(inProbe);
            IL.Push(inX);
            IL.Push(inY);
            IL.Push(inZ);
            IL.Push(outInfo);
            IL.Push(ProbeTerrainXYZPtr);
            IL.Emit.Calli(new StandAloneMethodSig(CallingConvention.Cdecl, typeof(ProbeResult), typeof(ProbeRef), typeof(float), typeof(float), typeof(float), typeof(ProbeInfo *)));
            IL.Pop(out result);
            return(result);
        }