C# Class Tilengine.Layer

Layer management
ファイルを表示 Open project: megamarc/Tilengine

Public Methods

Method 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

Method 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 method

public Disable ( ) : bool
return bool

GetTileInfo() public method

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

Reset() public method

public Reset ( ) : bool
return bool

SetBlendMode() public method

public SetBlendMode ( Blend blend, byte factor ) : bool
blend Blend
factor byte
return bool

SetPosition() public method

public SetPosition ( int x, int y ) : bool
x int
y int
return bool

SetScaling() public method

public SetScaling ( float sx, float sy ) : bool
sx float
sy float
return bool

SetTransform() public method

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

Setup() public method

public Setup ( Tileset tileset, Tilemap tilemap ) : bool
tileset Tileset
tilemap Tilemap
return bool