Esempio n. 1
0
 static public swig.Material3D GetMaterial3D(Material3D o)
 {
     if (o == null)
     {
         return(null);
     }
     return(o.CoreInstance);
 }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
 /// <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));
 }
Esempio n. 4
0
 /// <summary>
 /// 材質を設定する。
 /// </summary>
 /// <param name="material">材質</param>
 public void SetMaterial(int materialIndex, Material3D material)
 {
     CoreInstance.SetMaterial(IG.GetMaterial3D(material));
 }
Esempio n. 5
0
 /// <summary>
 /// 材質を設定する。
 /// </summary>
 /// <param name="material">材質</param>
 public void SetMaterial(Material3D material)
 {
     CoreInstance.SetMaterial(IG.GetMaterial3D(material));
 }
Esempio n. 6
0
 /// <summary>
 /// 材質を設定する。
 /// </summary>
 /// <param name="material">材質</param>
 public void SetMaterial(Material3D material)
 {
     CoreInstance.SetMaterial(IG.GetMaterial3D(material));
 }
Esempio n. 7
0
 public static swig.Material3D GetMaterial3D(Material3D o)
 {
     if (o == null) return null;
     return o.CoreInstance;
 }