C# Class hqNx.Hqnx

Inheritance: Microsoft.Xna.Framework.DrawableGameComponent
Exibir arquivo Open project: pdjonov/hqnx Class Usage Examples

Public Methods

Method Description
Draw2x ( Vector2 position ) : void
Draw2x ( Vector2 position, float rotation, Vector2 origin ) : void
Draw3x ( Vector2 position ) : void
Draw3x ( Vector2 position, float rotation, Vector2 origin ) : void
Draw4x ( Vector2 position ) : void
Draw4x ( Vector2 position, float rotation, Vector2 origin ) : void
Hqnx ( Microsoft.Xna.Framework.Game game ) : System
Initialize ( ) : void
Prepare ( Microsoft.Xna.Framework.Graphics.Texture2D image ) : void

Prepares an image for magnification.

Note that this will change the render target, but will not revert it to its previous value - you must immediately set the desired next target after calling this function.

Protected Methods

Method Description
LoadContent ( ) : void
UnloadContent ( ) : void

Private Methods

Method Description
ConvertKernel ( Color pOut, float pKern ) : void
Diff ( int cmp2, int t1, int t2 ) : bool
GenScreenQuad ( Vector2 origin, int width, int height ) : void
InitLutNx ( Texture3D lut, int n, FilterCaseDelegate filterCase ) : void

This really, *really*, needs to be preprocessed into a loaded blob.

Interp0 ( float pc, int t1 ) : void
Interp1 ( float pc, int t1, int t2 ) : void
Interp10 ( float pc, int t1, int t2, int t3 ) : void
Interp2 ( float pc, int t1, int t2, int t3 ) : void
Interp3 ( float pc, int t1, int t2 ) : void
Interp4 ( float pc, int t1, int t2, int t3 ) : void
Interp5 ( float pc, int t1, int t2 ) : void
Interp6 ( float pc, int t1, int t2, int t3 ) : void
Interp7 ( float pc, int t1, int t2, int t3 ) : void
Interp8 ( float pc, int t1, int t2 ) : void
Interp9 ( float pc, int t1, int t2, int t3 ) : void
MagnifyNx ( Vector2 position, Vector2 rotationOrigin, float rotation, int n, EffectPass scalePass ) : void
NormalizeKernel ( float pKern ) : void
NormalizeQuadCoords ( ) : void
RequirePatternBuffer ( int dx, int dy ) : void
RotateScreenQuad ( Vector2 origin, float angle ) : void
SetupTaps ( int width, int height ) : void
ShiftScreenQuad ( Vector2 delta ) : void

Method Details

Draw2x() public method

public Draw2x ( Vector2 position ) : void
position Vector2
return void

Draw2x() public method

public Draw2x ( Vector2 position, float rotation, Vector2 origin ) : void
position Vector2
rotation float
origin Vector2
return void

Draw3x() public method

public Draw3x ( Vector2 position ) : void
position Vector2
return void

Draw3x() public method

public Draw3x ( Vector2 position, float rotation, Vector2 origin ) : void
position Vector2
rotation float
origin Vector2
return void

Draw4x() public method

public Draw4x ( Vector2 position ) : void
position Vector2
return void

Draw4x() public method

public Draw4x ( Vector2 position, float rotation, Vector2 origin ) : void
position Vector2
rotation float
origin Vector2
return void

Hqnx() public method

public Hqnx ( Microsoft.Xna.Framework.Game game ) : System
game Microsoft.Xna.Framework.Game
return System

Initialize() public method

public Initialize ( ) : void
return void

LoadContent() protected method

protected LoadContent ( ) : void
return void

Prepare() public method

Prepares an image for magnification.
Note that this will change the render target, but will not revert it to its previous value - you must immediately set the desired next target after calling this function.
public Prepare ( Microsoft.Xna.Framework.Graphics.Texture2D image ) : void
image Microsoft.Xna.Framework.Graphics.Texture2D
return void

UnloadContent() protected method

protected UnloadContent ( ) : void
return void