Example #1
0
 public ShadowScene(IGameComponentRoot root, IGameComponentContainer parent)
     : base(root, parent) {
     _bufferedSettings = new ShadowSceneSettings();
     _techniqueTable = new Dictionary<Tuple<bool, bool, SurfaceMapping, NumberOfLights>, Tuple<EffectTechnique, EffectTechnique, EffectTechnique>>();
     SetNumberOfLights(NumberOfLights.One);
     UpdateBufferedSettings();
 }
Example #2
0
 public ShadowScene(IGameComponentRoot root, IGameComponentContainer parent)
     : base(root, parent)
 {
     _bufferedSettings = new ShadowSceneSettings();
     _techniqueTable   = new Dictionary <Tuple <bool, bool, SurfaceMapping, NumberOfLights>, Tuple <EffectTechnique, EffectTechnique, EffectTechnique> >();
     SetNumberOfLights(NumberOfLights.One);
     UpdateBufferedSettings();
 }
Example #3
0
 public ParticleSource(IGameComponentRoot root, IGameComponentContainer parent, Device device, ParticleEffectBase11 effect, ShaderResourceView texArraySRV, ShaderResourceView randomTexSRV, int maxParticles)
     : base(root, parent) {
     _firstRun = true;
     EmitDirW = new Vector3(0, 1, 0);
     _maxParticles = maxParticles;
     _fx = effect;
     _texArraySRV = texArraySRV;
     _randomTexSRV = randomTexSRV;
     _device = device;
 }
Example #4
0
 public ParticleSource(IGameComponentRoot root, IGameComponentContainer parent, Device device, ParticleEffectBase11 effect, ShaderResourceView texArraySRV, ShaderResourceView randomTexSRV, int maxParticles)
     : base(root, parent)
 {
     _firstRun     = true;
     EmitDirW      = new Vector3(0, 1, 0);
     _maxParticles = maxParticles;
     _fx           = effect;
     _texArraySRV  = texArraySRV;
     _randomTexSRV = randomTexSRV;
     _device       = device;
 }
 protected GameComponentContainer(IGameComponentRoot root, IGameComponentContainer parent)
     : base(root, parent)
 {
     _childComponents = new GameComponentCollection();
     _childComponents.ComponentAdded           += OnChildComponentsChanged;
     _childComponents.ComponentRemoved         += OnChildComponentsChanged;
     _childComponents.ComponentLoopPropChanged += OnChildComponentLoopPropChanged;
     _drawList        = new List <GameComponent>();
     _updateList      = new List <GameComponent>();
     _childrenChanged = false;
 }
Example #6
0
 public Skybox(IGameComponentRoot root, IGameComponentContainer parent, float skySphereRadius)
     : base(root, parent)
 {
     _skySphereRadius = skySphereRadius;
 }
Example #7
0
 public RenderTarget11(IGameComponentRoot root, IGameComponentContainer parent)
     : base(root, parent)
 {
 }
Example #8
0
 protected GameComponent(IGameComponentRoot root, IGameComponentContainer parent) {
     Name = string.Empty;
     _parentContainer = parent;
     _rootContainer = root;
 }
Example #9
0
 public InputHandler(IGameComponentRoot root, IGameComponentContainer parent)
     : base(root, parent)
 {
     _directInput = new DirectInput();
     _keyboard    = new Keyboard(_directInput);
 }
Example #10
0
 public InputHandler(IGameComponentRoot root, IGameComponentContainer parent)
     : base(root, parent) {
     _directInput = new DirectInput();
     _keyboard = new Keyboard(_directInput);
 }
Example #11
0
 public RenderTarget11(IGameComponentRoot root, IGameComponentContainer parent)
     : base(root, parent) {
 }
Example #12
0
 protected GameComponent(IGameComponentRoot root, IGameComponentContainer parent)
 {
     Name             = string.Empty;
     _parentContainer = parent;
     _rootContainer   = root;
 }
Example #13
0
 public Skybox(IGameComponentRoot root, IGameComponentContainer parent, float skySphereRadius)
     : base(root, parent) {
     _skySphereRadius = skySphereRadius;
 }