C# Class Axiom.RenderSystems.OpenGL.Nvidia.NvparseFragmentProgram

Specialization of GpuProgram that accepts source for DX8 level gpu programs and allows them to run on nVidia cards that support register and texture combiners.
Inheritance: GLGpuProgram
Show file Open project: mono-soc-2011/axiom Class Usage Examples

Public Methods

Method Description
Bind ( ) : void

Binds the Nvparse program to the current context.

BindProgramParameters ( GpuProgramParameters parms, GpuProgramParameters mask ) : void

Called to pass parameters to the Nvparse program.

NvparseFragmentProgram ( ResourceManager parent, string name, System.UInt64 handle, string group, bool isManual, IManualResourceLoader loader ) : System
Unbind ( ) : void

Unbinds the Nvparse program from the current context.

Unload ( ) : void

Protected Methods

Method Description
LoadFromSource ( ) : void

Loads the raw ASM source and runs Nvparse to send the appropriate texture/register combiner instructions to the card.

Private Methods

Method Description
nvparse ( string input ) : void
nvparse_get_errors ( ) : string

nvparse_get_errorsA ( ) : byte**

Method Details

Bind() public method

Binds the Nvparse program to the current context.
public Bind ( ) : void
return void

BindProgramParameters() public method

Called to pass parameters to the Nvparse program.
public BindProgramParameters ( GpuProgramParameters parms, GpuProgramParameters mask ) : void
parms Axiom.Graphics.GpuProgramParameters
mask Axiom.Graphics.GpuProgramParameters
return void

LoadFromSource() protected method

Loads the raw ASM source and runs Nvparse to send the appropriate texture/register combiner instructions to the card.
protected LoadFromSource ( ) : void
return void

NvparseFragmentProgram() public method

public NvparseFragmentProgram ( ResourceManager parent, string name, System.UInt64 handle, string group, bool isManual, IManualResourceLoader loader ) : System
parent Axiom.Core.ResourceManager
name string
handle System.UInt64
group string
isManual bool
loader IManualResourceLoader
return System

Unbind() public method

Unbinds the Nvparse program from the current context.
public Unbind ( ) : void
return void

Unload() public method

public Unload ( ) : void
return void