Ejemplo n.º 1
0
 public static IScopeBuilder WithXAudio(this IScopeBuilder builder)
 {
     return(builder
            .WithType <XAudioEngine>().AsSelf().AsSingleton()
            .WithType <DxSoundClip>().As <SoundClip>()
            .WithType <DxSoundClipInstance>().As <SoundClipInstance>());
 }
Ejemplo n.º 2
0
 public static IScopeBuilder WithSkia(this IScopeBuilder builder)
 {
     return(builder
            .WithType <SkiaImage>().As <Image>()
            .WithType <SkiaCanvas>().As <Canvas>().As <ISkiaCanvas>()
            .WithType <SkiaVertexBuffer>().As <VertexBuffer>()
            .WithType <SkiaFont>().As <Font>()
            .WithType <SkiaFontManager>().As <IFontManager>().AsSingleton()
            .WithType <SkiaEffectsFactory>().As <IEffectsFactory>().AsSingleton());
 }
Ejemplo n.º 3
0
 public static IScopeBuilder WithCrossTypes(this IScopeBuilder scopeBuilder)
 {
     return(scopeBuilder
            .WithType <NavigationImpl>().As <INavigation>()
            .WithType <ImageCache>().As <IImageCache>().AsSingleton());
 }