Ejemplo n.º 1
0
        public static UsdRiMaterialAPI Get(UsdStageWeakPtr stage, SdfPath path)
        {
            UsdRiMaterialAPI ret = new UsdRiMaterialAPI(UsdCsPINVOKE.UsdRiMaterialAPI_Get(UsdStageWeakPtr.getCPtr(stage), SdfPath.getCPtr(path)), true);

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Ejemplo n.º 2
0
        public static UsdRiMaterialAPI Apply(UsdPrim prim)
        {
            UsdRiMaterialAPI ret = new UsdRiMaterialAPI(UsdCsPINVOKE.UsdRiMaterialAPI_Apply(UsdPrim.getCPtr(prim)), true);

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Ejemplo n.º 3
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(UsdRiMaterialAPI obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }