Exemplo n.º 1
0
 internal MaterialPropertyBlock(swig.MaterialPropertyBlock swig)
 {
     #if DEBUG
     // 唯一の対応するクラスであることを保証
     if (GC.MaterialPropertyBlocks.GetObject(swig.GetPtr()) != null) Particular.Helper.ThrowException("");
     #endif
     SwigObject = swig;
 }
Exemplo n.º 2
0
        internal StaticFile(swig.StaticFile swig)
        {
            #if DEBUG
            if (GC.StaticFiles.GetObject(swig.GetPtr()) != null) Particular.Helper.ThrowException("");
            #endif

            CoreInstance = swig;
        }
Exemplo n.º 3
0
 internal KeyframeAnimation(swig.KeyframeAnimation swig)
 {
     #if DEBUG
     // 唯一の対応するクラスであることを保証
     if (GC.KeyframeAnimations.GetObject(swig.GetPtr()) != null) Particular.Helper.ThrowException("");
     #endif
     SwigObject = swig;
 }
Exemplo n.º 4
0
 internal Effect(swig.Effect swig)
 {
     #if DEBUG
     // 唯一の対応するクラスであることを保証
     if (GC.Effects.GetObject(swig.GetPtr()) != null) Particular.Helper.ThrowException("");
     #endif
     CoreInstance = swig;
 }
Exemplo n.º 5
0
 internal AnimationSource(swig.AnimationSource swig)
 {
     #if DEBUG
     // 唯一の対応するクラスであることを保証
     if (GC.AnimationSources.GetObject(swig.GetPtr()) != null) Particular.Helper.ThrowException("");
     #endif
     SwigObject = swig;
 }
Exemplo n.º 6
0
 internal Deformer(swig.Deformer swig)
 {
     #if DEBUG
     // 唯一の対応するクラスであることを保証
     if (GC.Deformers.GetObject(swig.GetPtr()) != null) Particular.Helper.ThrowException("");
     #endif
     SwigObject = swig;
 }
Exemplo n.º 7
0
 internal CubemapTexture(swig.CubemapTexture swig)
 {
     #if DEBUG
     // 唯一の対応するクラスであることを保証
     if (GC.CubemapTextures.GetObject(swig.GetPtr()) != null) Particular.Helper.ThrowException("");
     #endif
     SwigObject = swig;
 }
Exemplo n.º 8
0
 internal File(swig.File swig)
 {
     CoreInstance = swig;
 }
Exemplo n.º 9
0
 internal Material2D(swig.Material2D swig)
 {
     CoreInstance = swig;
 }
Exemplo n.º 10
0
 internal Graphics(swig.Graphics_Imp swig)
 {
     graphics = swig;
 }
Exemplo n.º 11
0
 internal RenderSettings(swig.RenderSettings settings)
 {
     IsLightweightMode = settings.IsLightweightMode;
     VisualizedBuffer = (VisualizedBufferType)settings.VisualizedBuffer;
 }
Exemplo n.º 12
0
 internal AnimationSystem(swig.AnimationSystem animationSyatem)
 {
     this.animationSyatem = animationSyatem;
 }
Exemplo n.º 13
0
 /// <summary>
 /// Logクラスをインスタンス化します。
 /// </summary>
 /// <param name="log">ネイティブのラッパー</param>
 internal Log(swig.Log log)
 {
     CoreInstance = log;
 }
Exemplo n.º 14
0
 /// <summary>
 /// ObjectSystemFactory クラスをインスタンス化する。
 /// </summary>
 /// <param name="factory">ネイティブのインスタンス</param>
 public ObjectSystemFactory(swig.ObjectSystemFactory factory)
 {
     this.factory = factory;
 }
Exemplo n.º 15
0
 /// <summary>
 /// ネイティブの CoreLayer2D クラスをインスタンス化する。
 /// </summary>
 /// <param name="settings">設定</param>
 /// <returns>ネイティブのインスタンス</returns>
 public swig.CoreLayer3D CreateLayer3D(swig.RenderSettings settings)
 {
     return factory.CreateLayer3D(settings);
 }
Exemplo n.º 16
0
 internal RenderTexture2D(swig.RenderTexture2D swig)
     : base(swig)
 {
     SwigObject = swig;
 }
Exemplo n.º 17
0
 internal Profiler( swig.Profiler profiler )
 {
     this.CoreInstance = profiler;
 }
Exemplo n.º 18
0
 internal Sound(swig.Sound sound)
 {
     CoreInstance = sound;
 }
Exemplo n.º 19
0
            public unsafe Layer(swig.Layer layer)
            {
                this.layer = layer;

                Name = layer.GetName();

                var rect = layer.GetRect();
                var Rect_ = new ImagePackageGenerator.Rect();
                Rect_.Top = rect.Top;
                Rect_.Bottom = rect.Bottom;
                Rect_.Left = rect.Left;
                Rect_.Right = rect.Right;
                Rect = Rect_;

                Pixels = new Color[Rect.Width * Rect.Height];

                fixed(Color* p_ = Pixels)
                {
                    byte* dst = (byte*)p_;
                    byte* src = (byte*)layer.GetData();
                    var srtideLength = layer.GetSrtideLength();

                    for(int y = 0; y < Rect.Height; y++)
                    {
                        for (int x = 0; x < Rect.Width; x++)
                        {
                            dst[(x + y * Rect.Width) * 4 + 0] = src[x * 4 + y * srtideLength + 0];
                            dst[(x + y * Rect.Width) * 4 + 1] = src[x * 4 + y * srtideLength + 1];
                            dst[(x + y * Rect.Width) * 4 + 2] = src[x * 4 + y * srtideLength + 2];
                            dst[(x + y * Rect.Width) * 4 + 3] = src[x * 4 + y * srtideLength + 3];
                        }
                    }
                }
            }
Exemplo n.º 20
0
 internal Shader3D(swig.Shader3D swig)
 {
     CoreInstance = swig;
 }