C# Class OpenRA.Graphics.Util

Afficher le fichier Open project: cjshmyr/OpenRA Class Usage Examples

Méthodes publiques

Méthode 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 méthode

public static FastCopyIntoChannel ( Sprite dest, byte src ) : void
dest Sprite
src byte
Résultat void

FastCopyIntoChannel() public static méthode

public static FastCopyIntoChannel ( Sprite dest, int channelOffset, byte src ) : void
dest Sprite
channelOffset int
src byte
Résultat void

FastCopyIntoSprite() public static méthode

public static FastCopyIntoSprite ( Sprite dest, Bitmap src ) : void
dest Sprite
src System.Drawing.Bitmap
Résultat void

FastCreateQuad() public static méthode

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
Résultat void

FastCreateQuad() public static méthode

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
Résultat void

IdentityMatrix() public static méthode

public static IdentityMatrix ( ) : float[]
Résultat float[]

MakeFloatMatrix() public static méthode

public static MakeFloatMatrix ( int imtx ) : float[]
imtx int
Résultat float[]

MatrixAABBMultiply() public static méthode

public static MatrixAABBMultiply ( float mtx, float bounds ) : float[]
mtx float
bounds float
Résultat float[]

MatrixInverse() public static méthode

public static MatrixInverse ( float m ) : float[]
m float
Résultat float[]

MatrixMultiply() public static méthode

public static MatrixMultiply ( float lhs, float rhs ) : float[]
lhs float
rhs float
Résultat float[]

MatrixVectorMultiply() public static méthode

public static MatrixVectorMultiply ( float mtx, float vec ) : float[]
mtx float
vec float
Résultat float[]

PremultipliedColorLerp() public static méthode

public static PremultipliedColorLerp ( float t, Color c1, Color c2 ) : Color
t float
c1 Color
c2 Color
Résultat Color

PremultiplyAlpha() public static méthode

public static PremultiplyAlpha ( Color c ) : Color
c Color
Résultat Color

ScaleMatrix() public static méthode

public static ScaleMatrix ( float sx, float sy, float sz ) : float[]
sx float
sy float
sz float
Résultat float[]

TranslationMatrix() public static méthode

public static TranslationMatrix ( float x, float y, float z ) : float[]
x float
y float
z float
Résultat float[]