C# Class OpenRA.Graphics.Util

Mostra file Open project: cjshmyr/OpenRA Class Usage Examples

Public Methods

Method Description
FastCopyIntoChannel ( Sprite dest, byte src ) : void
FastCopyIntoChannel ( Sprite dest, int channelOffset, byte src ) : void
FastCopyIntoSprite ( Sprite dest, Bitmap src ) : void
FastCreateQuad ( Vertex vertices, float2 o, Sprite r, float paletteTextureIndex, int nv, float2 size ) : void
FastCreateQuad ( Vertex vertices, float2 a, float2 b, float2 c, float2 d, Sprite r, float paletteTextureIndex, int nv ) : void
IdentityMatrix ( ) : float[]
MakeFloatMatrix ( int imtx ) : float[]
MatrixAABBMultiply ( float mtx, float bounds ) : float[]
MatrixInverse ( float m ) : float[]
MatrixMultiply ( float lhs, float rhs ) : float[]
MatrixVectorMultiply ( float mtx, float vec ) : float[]
PremultipliedColorLerp ( float t, Color c1, Color c2 ) : Color
PremultiplyAlpha ( Color c ) : Color
ScaleMatrix ( float sx, float sy, float sz ) : float[]
TranslationMatrix ( float x, float y, float z ) : float[]

Method Details

FastCopyIntoChannel() public static method

public static FastCopyIntoChannel ( Sprite dest, byte src ) : void
dest Sprite
src byte
return void

FastCopyIntoChannel() public static method

public static FastCopyIntoChannel ( Sprite dest, int channelOffset, byte src ) : void
dest Sprite
channelOffset int
src byte
return void

FastCopyIntoSprite() public static method

public static FastCopyIntoSprite ( Sprite dest, Bitmap src ) : void
dest Sprite
src System.Drawing.Bitmap
return void

FastCreateQuad() public static method

public static FastCreateQuad ( Vertex vertices, float2 o, Sprite r, float paletteTextureIndex, int nv, float2 size ) : void
vertices Vertex
o float2
r Sprite
paletteTextureIndex float
nv int
size float2
return void

FastCreateQuad() public static method

public static FastCreateQuad ( Vertex vertices, float2 a, float2 b, float2 c, float2 d, Sprite r, float paletteTextureIndex, int nv ) : void
vertices Vertex
a float2
b float2
c float2
d float2
r Sprite
paletteTextureIndex float
nv int
return void

IdentityMatrix() public static method

public static IdentityMatrix ( ) : float[]
return float[]

MakeFloatMatrix() public static method

public static MakeFloatMatrix ( int imtx ) : float[]
imtx int
return float[]

MatrixAABBMultiply() public static method

public static MatrixAABBMultiply ( float mtx, float bounds ) : float[]
mtx float
bounds float
return float[]

MatrixInverse() public static method

public static MatrixInverse ( float m ) : float[]
m float
return float[]

MatrixMultiply() public static method

public static MatrixMultiply ( float lhs, float rhs ) : float[]
lhs float
rhs float
return float[]

MatrixVectorMultiply() public static method

public static MatrixVectorMultiply ( float mtx, float vec ) : float[]
mtx float
vec float
return float[]

PremultipliedColorLerp() public static method

public static PremultipliedColorLerp ( float t, Color c1, Color c2 ) : Color
t float
c1 Color
c2 Color
return Color

PremultiplyAlpha() public static method

public static PremultiplyAlpha ( Color c ) : Color
c Color
return Color

ScaleMatrix() public static method

public static ScaleMatrix ( float sx, float sy, float sz ) : float[]
sx float
sy float
sz float
return float[]

TranslationMatrix() public static method

public static TranslationMatrix ( float x, float y, float z ) : float[]
x float
y float
z float
return float[]