C# Class MegaMan.Engine.Rendering.XnaRenderingContext

Inheritance: IRenderingContext
Afficher le fichier Open project: Tesserex/C--MegaMan-Engine

Méthodes publiques

Méthode Description
Begin ( ) : void
CreateColorResource ( Common color ) : IResourceImage
DisableLayer ( int layer ) : void
Draw ( IResourceImage resource, int layer, MegaMan position, Rectangle sourceRect = null, bool flipHorizontal = false, bool flipVertical = false ) : void
EnableLayer ( int layer ) : void
End ( ) : void
GetOpacity ( ) : float
IsLayerEnabled ( int layer ) : bool
LoadResource ( MegaMan.Common.FilePath texturePath, string paletteName = null ) : IResourceImage
SetOpacity ( float opacity ) : void
XnaRenderingContext ( GraphicsDevice graphicsDevice ) : System

Private Methods

Méthode Description
AddTexture ( Microsoft.Xna.Framework.Graphics.Texture2D texture, string palette ) : IResourceImage
CreateAllLayers ( ) : void
EnableAllLayers ( ) : void
GenerateSwappedTextures ( Palette palette, Microsoft.Xna.Framework.Graphics.Texture2D image ) : List
GetTextureFromPath ( MegaMan.Common.FilePath path ) : Microsoft.Xna.Framework.Graphics.Texture2D
VerifyPaletteSwaps ( Palette palette, int id, Microsoft.Xna.Framework.Graphics.Texture2D texture ) : void

Method Details

Begin() public méthode

public Begin ( ) : void
Résultat void

CreateColorResource() public méthode

public CreateColorResource ( Common color ) : IResourceImage
color Common
Résultat IResourceImage

DisableLayer() public méthode

public DisableLayer ( int layer ) : void
layer int
Résultat void

Draw() public méthode

public Draw ( IResourceImage resource, int layer, MegaMan position, Rectangle sourceRect = null, bool flipHorizontal = false, bool flipVertical = false ) : void
resource IResourceImage
layer int
position MegaMan
sourceRect MegaMan.Common.Geometry.Rectangle
flipHorizontal bool
flipVertical bool
Résultat void

EnableLayer() public méthode

public EnableLayer ( int layer ) : void
layer int
Résultat void

End() public méthode

public End ( ) : void
Résultat void

GetOpacity() public méthode

public GetOpacity ( ) : float
Résultat float

IsLayerEnabled() public méthode

public IsLayerEnabled ( int layer ) : bool
layer int
Résultat bool

LoadResource() public méthode

public LoadResource ( MegaMan.Common.FilePath texturePath, string paletteName = null ) : IResourceImage
texturePath MegaMan.Common.FilePath
paletteName string
Résultat IResourceImage

SetOpacity() public méthode

public SetOpacity ( float opacity ) : void
opacity float
Résultat void

XnaRenderingContext() public méthode

public XnaRenderingContext ( GraphicsDevice graphicsDevice ) : System
graphicsDevice GraphicsDevice
Résultat System