GeForceFX class vertex program.
Inheritance: NV3xGpuProgram
コード例 #1
0
ファイル: NV3xGpuProgram.cs プロジェクト: axiom3d/axiom
        public GLGpuProgram Create(ResourceManager parent, string name, ResourceHandle handle, string group, bool isManual,
                                   IManualResourceLoader loader, GpuProgramType type, string syntaxCode)
        {
            GLGpuProgram ret;

            if (type == GpuProgramType.Vertex)
            {
                ret = new VP30GpuProgram(parent, name, handle, group, isManual, loader);
            }
            else
            {
                ret = new FP30GpuProgram(parent, name, handle, group, isManual, loader);
            }
            ret.Type       = type;
            ret.SyntaxCode = syntaxCode;
            return(ret);
        }
コード例 #2
0
ファイル: NV3xGpuProgram.cs プロジェクト: mono-soc-2011/axiom
		public GLGpuProgram Create( ResourceManager parent, string name, ResourceHandle handle, string group, bool isManual, IManualResourceLoader loader, GpuProgramType type, string syntaxCode )
		{
			GLGpuProgram ret;
			if ( type == GpuProgramType.Vertex )
			{
				ret = new VP30GpuProgram( parent, name, handle, group, isManual, loader );
			}
			else
			{
				ret = new FP30GpuProgram( parent, name, handle, group, isManual, loader );
			}
			ret.Type = type;
			ret.SyntaxCode = syntaxCode;
			return ret;
		}