Ejemplo n.º 1
0
 static public int GetCorners(IntPtr l)
 {
     try {
         int argc = LuaDLL.lua_gettop(l);
         if (argc == 1)
         {
             ScriptRuntime.BoundingFrustum self = (ScriptRuntime.BoundingFrustum)checkSelf(l);
             var ret = self.GetCorners();
             pushValue(l, true);
             pushValue(l, ret);
             return(2);
         }
         else if (argc == 2)
         {
             ScriptRuntime.BoundingFrustum self = (ScriptRuntime.BoundingFrustum)checkSelf(l);
             ScriptRuntime.Vector3[]       a1;
             checkArray(l, 2, out a1);
             self.GetCorners(a1);
             pushValue(l, true);
             return(1);
         }
         pushValue(l, false);
         LuaDLL.lua_pushstring(l, "No matched override function to call");
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Ejemplo n.º 2
0
 static public int get_Top(IntPtr l)
 {
     try {
         ScriptRuntime.BoundingFrustum self = (ScriptRuntime.BoundingFrustum)checkSelf(l);
         pushValue(l, true);
         pushValue(l, self.Top);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Ejemplo n.º 3
0
 static public int set_Matrix(IntPtr l)
 {
     try {
         ScriptRuntime.BoundingFrustum self = (ScriptRuntime.BoundingFrustum)checkSelf(l);
         ScriptRuntime.Matrix44        v;
         checkValueType(l, 2, out v);
         self.Matrix = v;
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Ejemplo n.º 4
0
 static public int constructor(IntPtr l)
 {
     try {
         ScriptRuntime.BoundingFrustum o;
         ScriptRuntime.Matrix44        a1;
         checkValueType(l, 2, out a1);
         o = new ScriptRuntime.BoundingFrustum(a1);
         pushValue(l, true);
         pushValue(l, o);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Ejemplo n.º 5
0
 static public int Contains(IntPtr l)
 {
     try {
         int argc = LuaDLL.lua_gettop(l);
         if (matchType(l, argc, 2, typeof(ScriptRuntime.BoundingSphere)))
         {
             ScriptRuntime.BoundingFrustum self = (ScriptRuntime.BoundingFrustum)checkSelf(l);
             ScriptRuntime.BoundingSphere  a1;
             checkValueType(l, 2, out a1);
             var ret = self.Contains(a1);
             pushValue(l, true);
             pushEnum(l, (int)ret);
             return(2);
         }
         else if (matchType(l, argc, 2, typeof(ScriptRuntime.Vector3)))
         {
             ScriptRuntime.BoundingFrustum self = (ScriptRuntime.BoundingFrustum)checkSelf(l);
             ScriptRuntime.Vector3         a1;
             checkValueType(l, 2, out a1);
             var ret = self.Contains(a1);
             pushValue(l, true);
             pushEnum(l, (int)ret);
             return(2);
         }
         else if (matchType(l, argc, 2, typeof(ScriptRuntime.BoundingBox)))
         {
             ScriptRuntime.BoundingFrustum self = (ScriptRuntime.BoundingFrustum)checkSelf(l);
             ScriptRuntime.BoundingBox     a1;
             checkValueType(l, 2, out a1);
             var ret = self.Contains(a1);
             pushValue(l, true);
             pushEnum(l, (int)ret);
             return(2);
         }
         else if (matchType(l, argc, 2, typeof(ScriptRuntime.BoundingFrustum)))
         {
             ScriptRuntime.BoundingFrustum self = (ScriptRuntime.BoundingFrustum)checkSelf(l);
             ScriptRuntime.BoundingFrustum a1;
             checkType(l, 2, out a1);
             var ret = self.Contains(a1);
             pushValue(l, true);
             pushEnum(l, (int)ret);
             return(2);
         }
         else if (matchType(l, argc, 2, typeof(ScriptRuntime.Vector3), typeof(LuaOut)))
         {
             ScriptRuntime.BoundingFrustum self = (ScriptRuntime.BoundingFrustum)checkSelf(l);
             ScriptRuntime.Vector3         a1;
             checkValueType(l, 2, out a1);
             ScriptRuntime.ClipStatus a2;
             self.Contains(ref a1, out a2);
             pushValue(l, true);
             pushValue(l, a1);
             pushValue(l, a2);
             return(3);
         }
         else if (matchType(l, argc, 2, typeof(ScriptRuntime.BoundingSphere), typeof(LuaOut)))
         {
             ScriptRuntime.BoundingFrustum self = (ScriptRuntime.BoundingFrustum)checkSelf(l);
             ScriptRuntime.BoundingSphere  a1;
             checkValueType(l, 2, out a1);
             ScriptRuntime.ClipStatus a2;
             self.Contains(ref a1, out a2);
             pushValue(l, true);
             pushValue(l, a1);
             pushValue(l, a2);
             return(3);
         }
         else if (matchType(l, argc, 2, typeof(ScriptRuntime.BoundingBox), typeof(LuaOut)))
         {
             ScriptRuntime.BoundingFrustum self = (ScriptRuntime.BoundingFrustum)checkSelf(l);
             ScriptRuntime.BoundingBox     a1;
             checkValueType(l, 2, out a1);
             ScriptRuntime.ClipStatus a2;
             self.Contains(ref a1, out a2);
             pushValue(l, true);
             pushValue(l, a1);
             pushValue(l, a2);
             return(3);
         }
         pushValue(l, false);
         LuaDLL.lua_pushstring(l, "No matched override function to call");
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }