static public swig.Material3D GetMaterial3D(Material3D o) { if (o == null) { return(null); } return(o.CoreInstance); }
internal static Material3D GenerateMaterial3D(swig.Material3D o, GenerationType type) { if (o == null) { return(null); } var p = o.GetPtr(); var existing = GC.Material3Ds.GetObject(p); existing = GenerateInternal(existing, o, type); if (existing != null) { return(existing); } var ret = new Material3D(o); GC.Material3Ds.AddObject(p, ret); return(ret); }
/// <summary> /// 材質を設定する。 /// </summary> /// <param name="materialIndex">材質のインデックス</param> /// <param name="material">材質</param> /// <remarks>AddMaterialCountを実行した後でないと無効になる。</remarks> public void SetMaterial(int materialIndex, Material3D material) { CoreInstance.SetMaterial(materialIndex, IG.GetMaterial3D(material)); }
/// <summary> /// 材質を設定する。 /// </summary> /// <param name="material">材質</param> public void SetMaterial(int materialIndex, Material3D material) { CoreInstance.SetMaterial(IG.GetMaterial3D(material)); }
/// <summary> /// 材質を設定する。 /// </summary> /// <param name="material">材質</param> public void SetMaterial(Material3D material) { CoreInstance.SetMaterial(IG.GetMaterial3D(material)); }
public static swig.Material3D GetMaterial3D(Material3D o) { if (o == null) return null; return o.CoreInstance; }