C# Class Tilengine.Layer

Layer management
Afficher le fichier Open project: megamarc/Tilengine

Méthodes publiques

Méthode Description
Disable ( ) : bool

GetTileInfo ( int x, int y, TileInfo &info ) : bool

Reset ( ) : bool

SetBlendMode ( Blend blend, byte factor ) : bool

SetPosition ( int x, int y ) : bool

SetScaling ( float sx, float sy ) : bool

SetTransform ( float angle, float dx, float dy, float sx, float sy ) : bool

Setup ( Tileset tileset, Tilemap tilemap ) : bool

Private Methods

Méthode Description
TLN_DisableLayer ( int nlayer ) : bool
TLN_GetLayerPalette ( int nlayer ) : IntPtr
TLN_GetLayerTile ( int nlayer, int x, int y, TileInfo &info ) : bool
TLN_ResetLayerMode ( int nlayer ) : bool
TLN_SetLayer ( int nlayer, IntPtr tileset, IntPtr tilemap ) : bool
TLN_SetLayerBlendMode ( int nlayer, Blend mode, byte factor ) : bool
TLN_SetLayerColumnOffset ( int nlayer, int offset ) : bool
TLN_SetLayerPalette ( int nlayer, IntPtr palette ) : bool
TLN_SetLayerPosition ( int nlayer, int hstart, int vstart ) : bool
TLN_SetLayerScaling ( int nlayer, float xfactor, float yfactor ) : bool
TLN_SetLayerTransform ( int layer, float angle, float dx, float dy, float sx, float sy ) : bool

Method Details

Disable() public méthode

public Disable ( ) : bool
Résultat bool

GetTileInfo() public méthode

public GetTileInfo ( int x, int y, TileInfo &info ) : bool
x int
y int
info TileInfo
Résultat bool

Reset() public méthode

public Reset ( ) : bool
Résultat bool

SetBlendMode() public méthode

public SetBlendMode ( Blend blend, byte factor ) : bool
blend Blend
factor byte
Résultat bool

SetPosition() public méthode

public SetPosition ( int x, int y ) : bool
x int
y int
Résultat bool

SetScaling() public méthode

public SetScaling ( float sx, float sy ) : bool
sx float
sy float
Résultat bool

SetTransform() public méthode

public SetTransform ( float angle, float dx, float dy, float sx, float sy ) : bool
angle float
dx float
dy float
sx float
sy float
Résultat bool

Setup() public méthode

public Setup ( Tileset tileset, Tilemap tilemap ) : bool
tileset Tileset
tilemap Tilemap
Résultat bool