C# Class AcTools.Render.Base.Utils.SlimDxExtension

Show file Open project: gro-ove/actools Class Usage Examples

Public Methods

Method Description
CreateBlendState ( this device, RenderTargetBlendDescription description ) : BlendState
DrawAllPasses ( this tech, DeviceContext context, int indexCount ) : void
ExtendBy ( this bb, BoundingBox next ) : BoundingBox
GetBrightness ( this vec ) : float
GetCenter ( this bb ) : System.Vector3
GetSize ( this bb ) : System.Vector3
GetTranslationVector ( this matrix ) : System.Vector3
GetXyz ( this vec ) : System.Vector3
Set ( EffectVariable variable, object o, int len ) : void
Set ( this variable, object o ) : void
Set_ ( EffectVariable variable, object o, int len ) : void
ToBoundingBox ( this vertices ) : BoundingBox
ToIndicesFixX ( this indices ) : ushort[]
ToMatrix ( this mat4x4 ) : System.Matrix
ToMatrixFixX ( this mat4x4 ) : System.Matrix
ToVector2 ( this vec2 ) : System.Vector2
ToVector3 ( this vec3 ) : System.Vector3
ToVector3FixX ( this vec3 ) : System.Vector3
ToVector3Tangent ( this vec3 ) : System.Vector3
Transform ( this bb, System.Matrix matrix ) : BoundingBox

Method Details

CreateBlendState() public static method

public static CreateBlendState ( this device, RenderTargetBlendDescription description ) : BlendState
device this
description RenderTargetBlendDescription
return BlendState

DrawAllPasses() public static method

public static DrawAllPasses ( this tech, DeviceContext context, int indexCount ) : void
tech this
context DeviceContext
indexCount int
return void

ExtendBy() public static method

public static ExtendBy ( this bb, BoundingBox next ) : BoundingBox
bb this
next BoundingBox
return BoundingBox

GetBrightness() public static method

public static GetBrightness ( this vec ) : float
vec this
return float

GetCenter() public static method

public static GetCenter ( this bb ) : System.Vector3
bb this
return System.Vector3

GetSize() public static method

public static GetSize ( this bb ) : System.Vector3
bb this
return System.Vector3

GetTranslationVector() public static method

public static GetTranslationVector ( this matrix ) : System.Vector3
matrix this
return System.Vector3

GetXyz() public static method

public static GetXyz ( this vec ) : System.Vector3
vec this
return System.Vector3

Set() public static method

public static Set ( EffectVariable variable, object o, int len ) : void
variable EffectVariable
o object
len int
return void

Set() public static method

public static Set ( this variable, object o ) : void
variable this
o object
return void

Set_() public static method

public static Set_ ( EffectVariable variable, object o, int len ) : void
variable EffectVariable
o object
len int
return void

ToBoundingBox() public static method

public static ToBoundingBox ( this vertices ) : BoundingBox
vertices this
return BoundingBox

ToIndicesFixX() public static method

public static ToIndicesFixX ( this indices ) : ushort[]
indices this
return ushort[]

ToMatrix() public static method

public static ToMatrix ( this mat4x4 ) : System.Matrix
mat4x4 this
return System.Matrix

ToMatrixFixX() public static method

public static ToMatrixFixX ( this mat4x4 ) : System.Matrix
mat4x4 this
return System.Matrix

ToVector2() public static method

public static ToVector2 ( this vec2 ) : System.Vector2
vec2 this
return System.Vector2

ToVector3() public static method

public static ToVector3 ( this vec3 ) : System.Vector3
vec3 this
return System.Vector3

ToVector3FixX() public static method

public static ToVector3FixX ( this vec3 ) : System.Vector3
vec3 this
return System.Vector3

ToVector3Tangent() public static method

public static ToVector3Tangent ( this vec3 ) : System.Vector3
vec3 this
return System.Vector3

Transform() public static method

public static Transform ( this bb, System.Matrix matrix ) : BoundingBox
bb this
matrix System.Matrix
return BoundingBox