예제 #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;
		}