C# Класс MegaMan.Engine.Rendering.XnaRenderingContext

Наследование: IRenderingContext
Показать файл Открыть проект

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
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

Описание методов

Begin() публичный Метод

public Begin ( ) : void
Результат void

CreateColorResource() публичный Метод

public CreateColorResource ( Common color ) : IResourceImage
color Common
Результат IResourceImage

DisableLayer() публичный Метод

public DisableLayer ( int layer ) : void
layer int
Результат void

Draw() публичный Метод

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
Результат void

EnableLayer() публичный Метод

public EnableLayer ( int layer ) : void
layer int
Результат void

End() публичный Метод

public End ( ) : void
Результат void

GetOpacity() публичный Метод

public GetOpacity ( ) : float
Результат float

IsLayerEnabled() публичный Метод

public IsLayerEnabled ( int layer ) : bool
layer int
Результат bool

LoadResource() публичный Метод

public LoadResource ( MegaMan.Common.FilePath texturePath, string paletteName = null ) : IResourceImage
texturePath MegaMan.Common.FilePath
paletteName string
Результат IResourceImage

SetOpacity() публичный Метод

public SetOpacity ( float opacity ) : void
opacity float
Результат void

XnaRenderingContext() публичный Метод

public XnaRenderingContext ( GraphicsDevice graphicsDevice ) : System
graphicsDevice GraphicsDevice
Результат System