コード例 #1
0
ファイル: ShadowScene.cs プロジェクト: Hozuki/Noire
 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();
 }
コード例 #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();
 }
コード例 #3
0
ファイル: ParticleSource.cs プロジェクト: Hozuki/Noire
 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;
 }
コード例 #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;
 }
コード例 #5
0
 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;
 }
コード例 #6
0
 public Skybox(IGameComponentRoot root, IGameComponentContainer parent, float skySphereRadius)
     : base(root, parent)
 {
     _skySphereRadius = skySphereRadius;
 }
コード例 #7
0
 public RenderTarget11(IGameComponentRoot root, IGameComponentContainer parent)
     : base(root, parent)
 {
 }
コード例 #8
0
ファイル: GameComponent.cs プロジェクト: Hozuki/Noire
 protected GameComponent(IGameComponentRoot root, IGameComponentContainer parent) {
     Name = string.Empty;
     _parentContainer = parent;
     _rootContainer = root;
 }
コード例 #9
0
 public InputHandler(IGameComponentRoot root, IGameComponentContainer parent)
     : base(root, parent)
 {
     _directInput = new DirectInput();
     _keyboard    = new Keyboard(_directInput);
 }
コード例 #10
0
ファイル: InputHandler.cs プロジェクト: Hozuki/Noire
 public InputHandler(IGameComponentRoot root, IGameComponentContainer parent)
     : base(root, parent) {
     _directInput = new DirectInput();
     _keyboard = new Keyboard(_directInput);
 }
コード例 #11
0
ファイル: RenderTarget11.cs プロジェクト: Hozuki/Noire
 public RenderTarget11(IGameComponentRoot root, IGameComponentContainer parent)
     : base(root, parent) {
 }
コード例 #12
0
ファイル: GameComponent.cs プロジェクト: tgzihg/noire_history
 protected GameComponent(IGameComponentRoot root, IGameComponentContainer parent)
 {
     Name             = string.Empty;
     _parentContainer = parent;
     _rootContainer   = root;
 }
コード例 #13
0
ファイル: Skybox.cs プロジェクト: Hozuki/Noire
 public Skybox(IGameComponentRoot root, IGameComponentContainer parent, float skySphereRadius)
     : base(root, parent) {
     _skySphereRadius = skySphereRadius;
 }