Exemple #1
0
 static public int constructor(IntPtr l)
 {
     try {
         int argc = LuaDLL.lua_gettop(l);
         UnityEngine.Experimental.Rendering.DepthState o;
         if (argc == 3)
         {
             System.Boolean a1;
             checkType(l, 2, out a1);
             UnityEngine.Rendering.CompareFunction a2;
             checkEnum(l, 3, out a2);
             o = new UnityEngine.Experimental.Rendering.DepthState(a1, a2);
             pushValue(l, true);
             pushValue(l, o);
             return(2);
         }
         else if (argc <= 2)
         {
             o = new UnityEngine.Experimental.Rendering.DepthState();
             pushValue(l, true);
             pushValue(l, o);
             return(2);
         }
         return(error(l, "New object failed."));
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Exemple #2
0
 public RenderStateBlock(RenderStateMask mask)
 {
     this.m_BlendState       = BlendState.Default;
     this.m_RasterState      = RasterState.Default;
     this.m_DepthState       = DepthState.Default;
     this.m_StencilState     = StencilState.Default;
     this.m_StencilReference = 0;
     this.m_Mask             = mask;
 }
Exemple #3
0
 static public int constructor(IntPtr l)
 {
     try {
         UnityEngine.Experimental.Rendering.DepthState o;
         System.Boolean a1;
         checkType(l, 2, out a1);
         UnityEngine.Rendering.CompareFunction a2;
         checkEnum(l, 3, out a2);
         o = new UnityEngine.Experimental.Rendering.DepthState(a1, a2);
         pushValue(l, true);
         pushValue(l, o);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }