C# Class Ohana3DS_Transfigured.Ohana.RenderEngine

Inheritance: IDisposable
Afficher le fichier Open project: Quibilia/Ohana3DS-Transfigured Class Usage Examples

Méthodes publiques

Свойство Type Description
ctrlMA animationControl
ctrlSA animationControl
ctrlVA animationControl
lockCamera bool
models RenderBase.OModelGroup

Méthodes publiques

Méthode Description
Dispose ( ) : void
addTexture ( RenderBase texture ) : void

Adds a single texture to the model and the cache.

addTextureRange ( List textures ) : void

Adds a list of textures to the model and the cache.

initialize ( IntPtr handle, int width, int height ) : void

Initialize the renderer at a given target.

removeAllTextures ( ) : void

Removes all textures from the model and the cache.

removeTexture ( int index ) : void

Removes a texture at the given index.

render ( ) : void

Renders a single frame of the scene.

resetCamera ( ) : void

Set Camera back to zero position.

resize ( int width, int height ) : void

Resizes the Back Buffer.

setRotation ( float y, float x ) : void

Set X/Y angles to rotate the Mesh.

setTranslation ( float x, float y ) : void

Set translation of the Mesh.

setZoom ( float z ) : void

Set Zoom (distance of the Mesh to the Camera).

updateMeshes ( ) : void

Updates the internal meshes buffer used for rendering. Call this if you change the current model or the meshes on the current model.

updateSettings ( ) : void

Reloads all settings from the app settings file. Call this when you changes the settings.

updateTextures ( ) : void

Forces all textures on the model to be cached.

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Private Methods

Méthode Description
cacheTexture ( RenderBase texture ) : void

Adds a texture to the texture cache.

drawText ( string text, int width, int height ) : void

Draws a text inside a box on the Screen.

getBlend ( RenderBase function ) : Blend

Gets a DirectX Blend from a RenderBase Blend.

getBlendOperation ( RenderBase equation ) : BlendOperation

Gets a DirectX Blend operation from a RenderBase Blend operation.

getColor ( Color input ) : System.Vector4

Transforms a Color into a Vector4.

getCompare ( RenderBase function ) : Compare

Gets a DirectX Compare from a RenderBase Compare.

getMaterialAnimationColor ( RenderBase data, Color &color ) : void

Gets the current frame of a Material Animation color.

getMaterialAnimationFloat ( RenderBase data, float &value ) : void

Gets the current frame of a Material Animation float value.

getMaterialAnimationInt ( RenderBase data, int &value ) : void

Gets the current frame of a Material Animation integer value.

getMaterialAnimationVector2 ( RenderBase data, System.Vector2 &vector ) : void

Gets the current frame of a Material Animation 2-D vector.

getMatrix ( RenderBase mtx ) : System.Matrix

Gets a MDX Matrix from a RenderBase Matrix.

getQuaternion ( RenderBase vector ) : Quaternion

Creates a Quaternion from a Rotation 3-D Vector.

getStencilOperation ( RenderBase operation ) : StencilOperation

Gets a DirectX Stencil operation from a RenderBase Stencil operation.

refresh ( object sender, EventArgs e ) : void
resetRenderState ( ) : void

Resets the Render State to the default values.

rotateCenter2D ( float rotation ) : System.Matrix

Rotates a 2-D UV Coordinate around the center.

transformAnimationSkeleton ( List skeleton, int index, System.Matrix &target ) : void

Transforms a Skeleton from relative to absolute positions. Uses Quaternion for rotations.

transformSkeleton ( List skeleton, int index, System.Matrix &target ) : void

Transforms a Skeleton from relative to absolute positions.

translate2D ( System.Vector2 translation ) : System.Matrix

Builds a 2-D translation Matrix.

wrap ( float value ) : float

Wrap a Rotation Angle between -PI and PI.

Method Details

Dispose() public méthode

public Dispose ( ) : void
Résultat void

Dispose() protected méthode

protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

addTexture() public méthode

Adds a single texture to the model and the cache.
public addTexture ( RenderBase texture ) : void
texture RenderBase The texture to be added
Résultat void

addTextureRange() public méthode

Adds a list of textures to the model and the cache.
public addTextureRange ( List textures ) : void
textures List The list of textures to be added
Résultat void

initialize() public méthode

Initialize the renderer at a given target.
public initialize ( IntPtr handle, int width, int height ) : void
handle System.IntPtr Memory pointer to the control rendering buffer
width int Render width
height int Render height
Résultat void

removeAllTextures() public méthode

Removes all textures from the model and the cache.
public removeAllTextures ( ) : void
Résultat void

removeTexture() public méthode

Removes a texture at the given index.
public removeTexture ( int index ) : void
index int The index of the texture
Résultat void

render() public méthode

Renders a single frame of the scene.
public render ( ) : void
Résultat void

resetCamera() public méthode

Set Camera back to zero position.
public resetCamera ( ) : void
Résultat void

resize() public méthode

Resizes the Back Buffer.
public resize ( int width, int height ) : void
width int New width
height int New height
Résultat void

setRotation() public méthode

Set X/Y angles to rotate the Mesh.
public setRotation ( float y, float x ) : void
y float
x float
Résultat void

setTranslation() public méthode

Set translation of the Mesh.
public setTranslation ( float x, float y ) : void
x float
y float
Résultat void

setZoom() public méthode

Set Zoom (distance of the Mesh to the Camera).
public setZoom ( float z ) : void
z float
Résultat void

updateMeshes() public méthode

Updates the internal meshes buffer used for rendering. Call this if you change the current model or the meshes on the current model.
public updateMeshes ( ) : void
Résultat void

updateSettings() public méthode

Reloads all settings from the app settings file. Call this when you changes the settings.
public updateSettings ( ) : void
Résultat void

updateTextures() public méthode

Forces all textures on the model to be cached.
public updateTextures ( ) : void
Résultat void

Property Details

ctrlMA public_oe property

public animationControl ctrlMA
Résultat animationControl

ctrlSA public_oe property

public animationControl ctrlSA
Résultat animationControl

ctrlVA public_oe property

public animationControl ctrlVA
Résultat animationControl

lockCamera public_oe property

public bool lockCamera
Résultat bool

models public_oe property

public RenderBase.OModelGroup models
Résultat RenderBase.OModelGroup