Exemplo n.º 1
0
 protected override void RegisterServices(IVLFactory factory)
 {
     if (!factory.HasService <NodeContext, IResourceProvider <Device> >())
     {
         factory.RegisterService <NodeContext, IResourceProvider <Device> >(nodeContext =>
         {
             // One per entry point
             return(ResourceProvider.NewPooledPerApp(nodeContext, () => new Device(DriverType.Hardware, DeviceCreationFlags.BgraSupport | DeviceCreationFlags.VideoSupport)));
         });
     }
 }
Exemplo n.º 2
0
 protected override void RegisterServices(IVLFactory factory)
 {
     if (!factory.HasService <NodeContext, IResourceProvider <Device> >())
     {
         factory.RegisterService <NodeContext, IResourceProvider <Device> >(nodeContext =>
         {
             // One per entry point
             var key = nodeContext.Path.Stack.Last();
             return(ResourceProvider.NewPooledSystemWide(key, _ => new Device(DriverType.Hardware, DeviceCreationFlags.BgraSupport | DeviceCreationFlags.VideoSupport)));
         });
     }
 }
Exemplo n.º 3
0
 public static void RegisterSerializers(IVLFactory factory)
 {
     factory.RegisterSerializer <Int3, Int3Serializer>();
     factory.RegisterSerializer <BoundingBox, BoundingBoxSerializer>();
     factory.RegisterSerializer <Color3, Color3Serializer>();
     factory.RegisterSerializer <Color4, Color4Serializer>();
     factory.RegisterSerializer <Matrix, MatrixSerializer>();
     factory.RegisterSerializer <Quaternion, QuaternionSerializer>();
     factory.RegisterSerializer <RectangleF, RectangleFSerializer>();
     factory.RegisterSerializer <Vector2, Vector2Serializer>();
     factory.RegisterSerializer <Vector3, Vector3Serializer>();
     factory.RegisterSerializer <Vector4, Vector4Serializer>();
 }
Exemplo n.º 4
0
 protected override void RegisterServices(IVLFactory factory)
 {
     factory.RegisterNodeFactory(runwayFactory);
 }
Exemplo n.º 5
0
 protected override void RegisterServices(IVLFactory factory)
 {
     factory.RegisterNodeFactory(nodeFactory);
     factory.RegisterService <NodeContext, IResourceProvider <GlobalEngine> >(n => ResourceProvider.NewPooledSystemWide("VL.Audio", _ => new GlobalEngine()));
 }
Exemplo n.º 6
0
 public static void RegisterServices(IVLFactory factory)
 {
     VL.Xenko.Core.Serialization.RegisterSerializers(factory);
 }
Exemplo n.º 7
0
 protected override void RegisterServices(IVLFactory factory)
 {
 }