예제 #1
0
        public BoundarySystem(GraphicsDevice device, EffectFactory effectFactory, IComponentContainer <DebugInfo> debugInfos, IList <IComponentContainer> containers)
            : base(debugInfos, containers)
        {
            this.Device = device;
            this.Effect = effectFactory.Construct <ColorEffect>();

            this.Bounds = new BoundsDrawer3D(device);
            this.Quad   = new BoundsDrawer2D(device);
        }
예제 #2
0
        public ProjectorSystem(GraphicsDevice device, IComponentContainer <Projector> projectors, EffectFactory effectFactory)
        {
            this.Device     = device;
            this.Projectors = projectors;
            this.Effect     = effectFactory.Construct <ProjectorEffect>();

            this.FrustumDrawer = new BoundsDrawer3D(device);
            this.Technique     = ProjectorEffectTechniques.Projector;
        }
예제 #3
0
 public BoundarySystem(GraphicsDevice device, EffectFactory effectFactory, IComponentContainer <DebugInfo> components, IComponentContainer <Bounds> bounds)
 {
     this.Device     = device;
     this.Components = components;
     this.Bounds     = bounds;
     this.Effect     = effectFactory.Construct <ColorEffect>();
     this.Bound      = new BoundsDrawer3D(device);
     this.Quad       = new BoundsDrawer2D(device);
 }
예제 #4
0
        public ShadowCastingLightSystem(
            GraphicsDevice device,
            IComponentContainer <ShadowCastingLight> lights,
            EffectFactory effectFactory,
            ShadowMapSystem shadowMapSystem)
        {
            this.Device          = device;
            this.Effect          = effectFactory.Construct <ShadowCastingLightEffect>();
            this.Lights          = lights;
            this.ShadowMapSystem = shadowMapSystem;

            this.FrustumDrawer = new BoundsDrawer3D(device);
        }