コード例 #1
0
        internal bool Initialize()
        {
            SubRenderStateFactory curFactory;

            curFactory = new FFPTransformFactory();
            ShaderGenerator.Instance.AddSubRenderStateFactory(curFactory);
            this.ffpSubRenderStateFactoryList.Add(curFactory);

            curFactory = new FFPColorFactory();
            ShaderGenerator.Instance.AddSubRenderStateFactory(curFactory);
            this.ffpSubRenderStateFactoryList.Add(curFactory);

            curFactory = new FFPLightingFactory();
            ShaderGenerator.Instance.AddSubRenderStateFactory(curFactory);
            this.ffpSubRenderStateFactoryList.Add(curFactory);

            curFactory = new FFPTexturingFactory();
            ShaderGenerator.Instance.AddSubRenderStateFactory(curFactory);
            this.ffpSubRenderStateFactoryList.Add(curFactory);

            curFactory = new FFPFogFactory();
            ShaderGenerator.Instance.AddSubRenderStateFactory(curFactory);
            this.ffpSubRenderStateFactoryList.Add(curFactory);

            return(true);
        }
コード例 #2
0
		internal bool Initialize()
		{
			SubRenderStateFactory curFactory;

			curFactory = new FFPTransformFactory();
			ShaderGenerator.Instance.AddSubRenderStateFactory( curFactory );
			this.ffpSubRenderStateFactoryList.Add( curFactory );

			curFactory = new FFPColorFactory();
			ShaderGenerator.Instance.AddSubRenderStateFactory( curFactory );
			this.ffpSubRenderStateFactoryList.Add( curFactory );

			curFactory = new FFPLightingFactory();
			ShaderGenerator.Instance.AddSubRenderStateFactory( curFactory );
			this.ffpSubRenderStateFactoryList.Add( curFactory );

			curFactory = new FFPTexturingFactory();
			ShaderGenerator.Instance.AddSubRenderStateFactory( curFactory );
			this.ffpSubRenderStateFactoryList.Add( curFactory );

			curFactory = new FFPFogFactory();
			ShaderGenerator.Instance.AddSubRenderStateFactory( curFactory );
			this.ffpSubRenderStateFactoryList.Add( curFactory );

			return true;
		}