C# Class Tilengine.Tileset

Tileset resource
Mostrar archivo Open project: megamarc/Tilengine Class Usage Examples

Public Methods

Method Description
Clone ( ) : Tileset

CopyTile ( int src, int dst ) : bool

Delete ( ) : bool

FromFile ( string filename ) : Tileset

SetPixels ( int entry, byte pixels, int pitch ) : bool

Tileset ( int numTiles, int width, int height, Palette palette ) : System

Private Methods

Method Description
TLN_CloneTileset ( IntPtr src ) : IntPtr
TLN_CopyTile ( IntPtr tileset, int src, int dst ) : bool
TLN_CreateTileset ( int numtiles, int width, int height, IntPtr palette ) : IntPtr
TLN_DeleteTileset ( IntPtr tileset ) : bool
TLN_GetTileHeight ( IntPtr tileset ) : int
TLN_GetTileWidth ( IntPtr tileset ) : int
TLN_GetTilesetPalette ( IntPtr tileset ) : IntPtr
TLN_LoadTileset ( string filename ) : IntPtr
TLN_SetTilesetPixels ( IntPtr tileset, int entry, byte srcdata, int srcpitch ) : bool
Tileset ( IntPtr res ) : System

Method Details

Clone() public method

public Clone ( ) : Tileset
return Tileset

CopyTile() public method

public CopyTile ( int src, int dst ) : bool
src int
dst int
return bool

Delete() public method

public Delete ( ) : bool
return bool

FromFile() public static method

public static FromFile ( string filename ) : Tileset
filename string
return Tileset

SetPixels() public method

public SetPixels ( int entry, byte pixels, int pitch ) : bool
entry int
pixels byte
pitch int
return bool

Tileset() public method

public Tileset ( int numTiles, int width, int height, Palette palette ) : System
numTiles int
width int
height int
palette Palette
return System