Example #1
0
        /// <summary>
        /// asd.GeometryObject2D の新しいインスタンスを初期化します。
        /// </summary>
        public GeometryObject2D()
        {
            shape = null;
            coreObject = Engine.ObjectSystemFactory.CreateGeometryObject2D();

            var p = coreObject.GetPtr();
            if (GC.Object2Ds.GetObject(p) != null)
            {
                Particular.Helper.ThrowException("");
            }
            GC.Object2Ds.AddObject(p, this);
        }
Example #2
0
 /// <summary>
 /// 指定した図形と衝突しているか否かを調べる。
 /// </summary>
 /// <param name="shape">衝突を調べる図形</param>
 /// <returns>衝突したか否か</returns>
 public bool GetIsCollidedWith(Shape shape)
 {
     return CoreShape.GetIsCollidedWith(shape.CoreShape);
 }
Example #3
0
 protected void DrawShapeAdditionally(Shape shape, Color color, Texture2D texture, AlphaBlendMode alphaBlend, int priority)
 {
     Layer.DrawShapeAdditionally(shape, color, texture, alphaBlend, priority);
 }
Example #4
0
 public void DrawShapeAdditionally(Shape shape, Color color, Texture2D texture, AlphaBlendMode alphaBlend, int priority)
 {
     if (coreLayer2D == null) return;
     coreLayer2D.DrawShapeAdditionally(shape.CoreShape, color, (texture == null) ? null : texture.SwigObject, (swig.AlphaBlendMode)alphaBlend, priority);
 }