Ignore:
Timestamp:
Feb 11, 2011, 10:45:37 PM (10 years ago)
Author:
sam
Message:

TileSets can now be initialised either using the tile size, or the
known number of tiles in a row and a column. Necessary for ticket #24.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/tiler.cpp

    r418 r633  
    4646 */
    4747
    48 int Tiler::Register(char const *path, int w, int h, float dilate)
     48int Tiler::Register(char const *path, int2 size, int2 count, float dilate)
    4949{
    5050    int id = data->tilesets.MakeSlot(path);
     
    5252    if (!data->tilesets.GetEntity(id))
    5353    {
    54         TileSet *tileset = new TileSet(path, w, h, dilate);
     54        TileSet *tileset = new TileSet(path, size, count, dilate);
    5555        data->tilesets.SetEntity(id, tileset);
    5656#if !FINAL_RELEASE
Note: See TracChangeset for help on using the changeset viewer.