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); }
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; }
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); }
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); }