internal MaterialPropertyBlock(swig.MaterialPropertyBlock swig) { #if DEBUG // 唯一の対応するクラスであることを保証 if (GC.MaterialPropertyBlocks.GetObject(swig.GetPtr()) != null) Particular.Helper.ThrowException(""); #endif SwigObject = swig; }
internal StaticFile(swig.StaticFile swig) { #if DEBUG if (GC.StaticFiles.GetObject(swig.GetPtr()) != null) Particular.Helper.ThrowException(""); #endif CoreInstance = swig; }
internal KeyframeAnimation(swig.KeyframeAnimation swig) { #if DEBUG // 唯一の対応するクラスであることを保証 if (GC.KeyframeAnimations.GetObject(swig.GetPtr()) != null) Particular.Helper.ThrowException(""); #endif SwigObject = swig; }
internal Effect(swig.Effect swig) { #if DEBUG // 唯一の対応するクラスであることを保証 if (GC.Effects.GetObject(swig.GetPtr()) != null) Particular.Helper.ThrowException(""); #endif CoreInstance = swig; }
internal AnimationSource(swig.AnimationSource swig) { #if DEBUG // 唯一の対応するクラスであることを保証 if (GC.AnimationSources.GetObject(swig.GetPtr()) != null) Particular.Helper.ThrowException(""); #endif SwigObject = swig; }
internal Deformer(swig.Deformer swig) { #if DEBUG // 唯一の対応するクラスであることを保証 if (GC.Deformers.GetObject(swig.GetPtr()) != null) Particular.Helper.ThrowException(""); #endif SwigObject = swig; }
internal CubemapTexture(swig.CubemapTexture swig) { #if DEBUG // 唯一の対応するクラスであることを保証 if (GC.CubemapTextures.GetObject(swig.GetPtr()) != null) Particular.Helper.ThrowException(""); #endif SwigObject = swig; }
internal File(swig.File swig) { CoreInstance = swig; }
internal Material2D(swig.Material2D swig) { CoreInstance = swig; }
internal Graphics(swig.Graphics_Imp swig) { graphics = swig; }
internal RenderSettings(swig.RenderSettings settings) { IsLightweightMode = settings.IsLightweightMode; VisualizedBuffer = (VisualizedBufferType)settings.VisualizedBuffer; }
internal AnimationSystem(swig.AnimationSystem animationSyatem) { this.animationSyatem = animationSyatem; }
/// <summary> /// Logクラスをインスタンス化します。 /// </summary> /// <param name="log">ネイティブのラッパー</param> internal Log(swig.Log log) { CoreInstance = log; }
/// <summary> /// ObjectSystemFactory クラスをインスタンス化する。 /// </summary> /// <param name="factory">ネイティブのインスタンス</param> public ObjectSystemFactory(swig.ObjectSystemFactory factory) { this.factory = factory; }
/// <summary> /// ネイティブの CoreLayer2D クラスをインスタンス化する。 /// </summary> /// <param name="settings">設定</param> /// <returns>ネイティブのインスタンス</returns> public swig.CoreLayer3D CreateLayer3D(swig.RenderSettings settings) { return factory.CreateLayer3D(settings); }
internal RenderTexture2D(swig.RenderTexture2D swig) : base(swig) { SwigObject = swig; }
internal Profiler( swig.Profiler profiler ) { this.CoreInstance = profiler; }
internal Sound(swig.Sound sound) { CoreInstance = sound; }
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]; } } } }
internal Shader3D(swig.Shader3D swig) { CoreInstance = swig; }