/// <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); }
/// <summary> /// 指定した図形と衝突しているか否かを調べる。 /// </summary> /// <param name="shape">衝突を調べる図形</param> /// <returns>衝突したか否か</returns> public bool GetIsCollidedWith(Shape shape) { return CoreShape.GetIsCollidedWith(shape.CoreShape); }
protected void DrawShapeAdditionally(Shape shape, Color color, Texture2D texture, AlphaBlendMode alphaBlend, int priority) { Layer.DrawShapeAdditionally(shape, color, texture, alphaBlend, priority); }
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); }