Beispiel #1
0
        /// <summary>
        /// コンストラクタ
        /// </summary>
        public Layer2D()
        {
            coreLayer2D = Engine.ObjectSystemFactory.CreateLayer2D();

            var p = coreLayer2D.GetPtr();

            if (GC.Layer2Ds.GetObject(p) != null)
            {
                Particular.Helper.ThrowException("");
            }

            GC.Layer2Ds.AddObject(p, this);

            contentsManager  = new ContentsManager <Object2D>();
            componentManager = new ComponentManager <Layer2D, Layer2DComponent>(this);

            commonObject = coreLayer2D;
        }
Beispiel #2
0
        /// <summary>
        /// コンストラクタ
        /// </summary>
        public Layer3D(RenderSettings settings = null)
        {
            swig.RenderSettings settings_ = new swig.RenderSettings();
            if (settings != null)
            {
                settings_.IsLightweightMode = settings.IsLightweightMode;
                settings_.VisualizedBuffer  = (swig.VisualizedBufferType)settings.VisualizedBuffer;
            }

            coreLayer3D = Engine.ObjectSystemFactory.CreateLayer3D(settings_);

            var p = coreLayer3D.GetPtr();

            if (GC.Layer3Ds.GetObject(p) != null)
            {
                Particular.Helper.ThrowException("");
            }

            GC.Layer3Ds.AddObject(p, this);

            contentsManager = new ContentsManager <Object3D>();

            commonObject = coreLayer3D;
        }