public InternalTexture(
            ThinEngine engine, int source, System.Nullable <bool> delayAllocation = null
            )
        {
            var entity = EventHorizonBlazorInterop.New(
                new string[] { "BABYLON", "InternalTexture" },
                engine, source, delayAllocation
                );

            ___guid = entity.___guid;
        }
예제 #2
0
        public static async ValueTask <InternalTexture> NewInternalTexture(
            ThinEngine engine, int source, System.Nullable <bool> delayAllocation = null
            )
        {
            var entity = await EventHorizonBlazorInterop.New(
                new string[] { "BABYLON", "InternalTexture" },
                engine, source, delayAllocation
                );

            return(new InternalTexture(entity));
        }
        public static async ValueTask <Effect> NewEffect(
            object baseName, string[] attributesNamesOrOptions, string[] uniformsNamesOrEngine, string[] samplers = null, ThinEngine engine = null, string defines = null, IEffectFallbacks fallbacks = null, ActionCallback <Effect> onCompiled = null, ActionCallback <Effect, string> onError = null, object indexParameters = null
            )
        {
            var entity = await EventHorizonBlazorInterop.New(
                new string[] { "BABYLON", "Effect" },
                baseName, attributesNamesOrOptions, uniformsNamesOrEngine, samplers, engine, defines, fallbacks, onCompiled, onError, indexParameters
                );

            return(new Effect(entity));
        }
        public Effect(
            object baseName, string[] attributesNamesOrOptions, string[] uniformsNamesOrEngine, string[] samplers = null, ThinEngine engine = null, string defines = null, IEffectFallbacks fallbacks = null, ActionCallback <Effect> onCompiled = null, ActionCallback <Effect, string> onError = null, object indexParameters = null
            ) : base()
        {
            var entity = EventHorizonBlazorInterop.New(
                new string[] { "BABYLON", "Effect" },
                baseName, attributesNamesOrOptions, uniformsNamesOrEngine, samplers, engine, defines, fallbacks, onCompiled, onError, indexParameters
                );

            ___guid = entity.___guid;
        }